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!

Passing a form variable to IN() function in query

Status
Not open for further replies.

Jackie

MIS
Feb 9, 2000
148
US
I collect data in a text box (txtAppSelected) on a form. The data is stored in the following format: "abc","def","ghi"

The following statement is in the criteria field:

In ([forms]![key word search]![txtAppSelected])

The problem is the query returns zero records, although record matches exist.

What is the correct syntax for passing a variable? I have experimented with a variety of single and double quote combinations, but with no success.

Thank you in advance for your response.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top