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

SQL Giving a user the chance via a form, to alter a sql where clause,

Status
Not open for further replies.

buttersoft

Programmer
Jun 11, 2000
75
CH
Does anyone know how to present a user with a form, which asks them to complete their choices to search for, and then this input is entered into the WHERE clause of the script and the script runs.

I have a script that looks for 3 to 4 letter codes in a file with several thousand such codes. The user could decide he wants to report on ARM PON XAR for example, and thus the WHERE clause would have to be modified to
WHERE (EPIC = 'ARM OR EPIC = 'PON' OR EPIC = 'XAR), so what I want to do is present a form asking for a list perhaps seperated by a TAB or comma of EPICS, and then this has to overwrite the WHERE clause that is presently in the SQL script.

Anyone know how to do this?
 
Did you get an answer on this? You'll need to declare a string variable(s) and use a tilde (~) to address them. E-mail me at Noah_Osnos@TommyBOy.com.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top