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

How do I filter excluding more than 1 word 2

Status
Not open for further replies.

Rmcta

Technical User
Nov 1, 2002
478
US
I need to have my query filter excluding sentences that contain "*TEAM", "TEAM*", "US"
I tried where FieldName NOT IN("*TEAM", "TEAM*", "US")
but it does not work.

What is the syntax?
 
I'm not sure if you can use the wildcards with NOT IN. Try this:

Where Fieldname Not Like "*TEAM" or Not Like "TEAM*" or Not Like "US"

-Tracy
 
That needs to be "And"s, not "Or". Also you could combine your first two into Not like "*Team*"

Hope that helps.

Kevin
 
You are correct. Thank you very much![2thumbsup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top