Still learning criteria...need help!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a table of about 1,000 different job titles and would like to run a
query with all but 7 of them. I can use Not to exclude one of the job
titles, but can't find how to exclude all 7 in the same query. Is this
something that can be done? Please help, I think I have read every box I can
and I still haven't found anything to solve my problem!
 
Kristin said:
I have a table of about 1,000 different job titles and would like to run a
query with all but 7 of them. I can use Not to exclude one of the job
titles, but can't find how to exclude all 7 in the same query. Is this
something that can be done? Please help, I think I have read every box I can
and I still haven't found anything to solve my problem!
 
Have you tried putting a different criteria on each line in the same column
that would account for each of the titles that you would like to exclude?
 
Yes, I have tried that and it only recognizes the first item in the list.
 
Check the JET SQL Reference section in Access Help on the "In" operator.

You can use "Not" with "In" like:

.....
WHERE [MyField] Not In (1, 2, 3)

which will not select Records with [MyField] values equal 1, 2 or 3.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top