Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Validation rule with SQL ?

Status
Not open for further replies.

AlexandreAmant

IS-IT--Management
Aug 24, 2002
94
BE
Hi !
I am building a stock database and I have a combo in which the user chooses the product he wants to order and the quantity in stock for that chosen product appears in a listbox (could not find an other way).

The user then can put in a text box how many pieces he wants to order.
I want to do a validation rule that checks that the user does not order more than what is in stock. I have put some SQL in the validation rule and it tells me that there is no current record in the validation rule of the object.

Anyone can help ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top