In the rows column of my table I have the numbers of some products.
In a sell form I have a textbox who shows step by step one of those numbers.From the spinner I select a number from 1 to 9.
What I want to do is to decrease one of those numbers with the number selected from the spinner, something like this:
IF thisform.text7.Value<=thisform.spinner1.value
REPLACE thisform.text7.Value WITH (thisform.txtbuc.Value-thisform.spinner1.value)
ELSE Error "Number too big"
ENDIF
The new number must be saved into the database and showed in the textbox.If the number selected by me is greater then the shown number in the textbox, an error message will appear.
Where do I do wrong and what I have to do?
Please save me.Thanks
In a sell form I have a textbox who shows step by step one of those numbers.From the spinner I select a number from 1 to 9.
What I want to do is to decrease one of those numbers with the number selected from the spinner, something like this:
IF thisform.text7.Value<=thisform.spinner1.value
REPLACE thisform.text7.Value WITH (thisform.txtbuc.Value-thisform.spinner1.value)
ELSE Error "Number too big"
ENDIF
The new number must be saved into the database and showed in the textbox.If the number selected by me is greater then the shown number in the textbox, an error message will appear.
Where do I do wrong and what I have to do?
Please save me.Thanks