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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prompt User untill the order # is correct

Status
Not open for further replies.

PM007

IS-IT--Management
Aug 6, 2004
2
IN
I'm Using an ODBC script that utilizes a SQL statement (as shown below). What's happening is, if the user types in an incorrect 'Order #' then the ODBC link disconnects,the user then has to click off the ODBC command button, then turn it back on; this happens by default due the Shipping Software packing I support. At any rate, I want my script to prompt (i.e. input box) the user for the number EVERY TIME until the order # is equal to the number in the order table, how can I do this in SQL.

Thanks a million and Happy Holidays.

PM

My script as followed:

Select Distinct !!ordernum!!, !!barcode!!, !!custnum!!, !!CoName!!, !!CustContac!!,!!ADD1!!, !!city!!, !!state!!, !!zip!!, !!country!!, !!ShipVia!!,!!ponum!!, !!phonenum!! ,!!faxnum!!,!!SENDFAX!!,!!CONTROLFAX!!, !!FORM!! From ToAscent ToAscent Where (!!barcode!! = '!!input!!')

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top