Vermontecher
Programmer
Hello,
This is an awesome site, I am hoping one of you wizards have the answer to my quandry. I have a form that has two fields I need to calculate and validate. What I want is something like this...
Background: Access 2000 Database
Form developed in ASP
Total of many fields but only two are at issue...
Request.form("NumberPurchased")
If NumberPurchased >= ("Available") Then
'The error will go here
Else
Process the form
So basically I want to make sure that the purchaser can not go any farther with the form if they enter a number larger than the number of available items. If there are 6 items available and the visitor enters a 7 or higher it will pop up an error, if they enter a 6 or less it will process the form. I know how to do the calculation (I think) but I do not have a clue how to validate it when the submit button is clicked.
Thanks, I look forward to many visits to this site in the future.
VermontTecher
This is an awesome site, I am hoping one of you wizards have the answer to my quandry. I have a form that has two fields I need to calculate and validate. What I want is something like this...
Background: Access 2000 Database
Form developed in ASP
Total of many fields but only two are at issue...
Request.form("NumberPurchased")
If NumberPurchased >= ("Available") Then
'The error will go here
Else
Process the form
So basically I want to make sure that the purchaser can not go any farther with the form if they enter a number larger than the number of available items. If there are 6 items available and the visitor enters a 7 or higher it will pop up an error, if they enter a 6 or less it will process the form. I know how to do the calculation (I think) but I do not have a clue how to validate it when the submit button is clicked.
Thanks, I look forward to many visits to this site in the future.
VermontTecher