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

Using a VB Script Variable in a DB Results Custom Query

Status
Not open for further replies.

jeffcullina

Programmer
May 13, 2002
80
US
I have a variable in vb script at the top of a page to determine the correct WHERE clause for a query. Then I build a custom query through the Database Results Wizard. I would like to use the variable in the query, but I cannot figure out the syntax for it. In the custom query portion of the Database Results Wizard, I have

SELECT tblMEL.* FROM tblMEL WHERE <%=var%>

The problem is, the wizard also writes the code in VB script so the %> part of my <%=var%> entry unintentially closes the code written by the wizard. Is there some way to do this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top