Query Criteria - EXCLUDE MULTIPLE?

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

Guest

I have a list of events in a table. Some are repeating events. I want to
create a query that will EXCLUDE certain events. In otherwords, when I run
the query, I want to NOT see certain events based on the ones I exclude in
the Query design.

Hope this makes sense? Can anyone give me the correct parameters for this?
Thanks.
 
T. Helm said:
I have a list of events in a table. Some are repeating events. I
want to create a query that will EXCLUDE certain events. In
otherwords, when I run the query, I want to NOT see certain events
based on the ones I exclude in the Query design.

Hope this makes sense? Can anyone give me the correct parameters for
this? Thanks.

SELECT *
FROM TableName
WHERE SomeField Not In('SomeValue', 'SomeOtherValue', etc..)
 
In the criteria for the Events field try Not like "firstevent" and not like
"2nd event" etc
HTH, Sheila
 
If you want to not see repeated values, use a DISTINCT, or the more
versatile GROUP BY, which will let you do something with the associated
fields.


Hoping it may help,
Vanderghast, Access MVP
 

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