SQL 2000
ASP
I am trying to figure out a way to validate a textbox on a form to make sure before they submit the form or use the onChange function, I need to make sure that the number they enter, I have enough of that product in my database.
Example
I have 5 Apples in my tbl_stock table. Some requests 8 Apples, I need an error msg to pop up and tell that person, I only have 5. I have tried to think of many ways to do this. I think I can do this with a SQL Statement, but I am just not sure how to put it all together. Much thanks
ASP
I am trying to figure out a way to validate a textbox on a form to make sure before they submit the form or use the onChange function, I need to make sure that the number they enter, I have enough of that product in my database.
Example
I have 5 Apples in my tbl_stock table. Some requests 8 Apples, I need an error msg to pop up and tell that person, I only have 5. I have tried to think of many ways to do this. I think I can do this with a SQL Statement, but I am just not sure how to put it all together. Much thanks