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

Criteria question about Access Query Designer

Status
Not open for further replies.

ChrisOjeda

Programmer
Apr 16, 2003
45
0
0
US
I currently have an IN statement as the criteria for my query. The IN statement contains codes that a user enters into a table via a form (not a techinical person). The problem with the IN statement is that the user would like to have it always include all the codes that they have entered into the table that I mentioned.

What can I place in the criteria so that the IN statement will always be constructed to include all of the codes? If somebody has experience doing something like this or ideas, I'd appreciate them....
 
Hi

IN (SELECT thecode FROM MyTable)

should do it, using the appropriate column and table names of course

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top