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

sql query with variable from asp on same page

Status
Not open for further replies.

frogggg

Programmer
Jan 17, 2002
182
US
How can I query a recordset to bring back all records where the value = the value of a listbox?
select * from table
where listbox.value = table.field
the sql builder in visual interdev does not understand this.
Do I have to put this in the vbscript code? Please say no.
 
I don't use Visual InterDev, but the concept is
You have two pages, the first page is used to collect information from user, the second page is used to connect to the database to collect data.
After user clicks on Submit button, the second page will be called and it doesn't know what listbox.value is. You have to get the value of listbox.value then build a SQL statement.

I think you have to write it in your VBscript code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top