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

Multiple "Not equal to" Criteria 1

Status
Not open for further replies.

izzyq

MIS
Mar 13, 2002
38
CA
Is it possible to add multiple (<>) Not equal to Criteria when trying to filter out an access query. For Example returning data that does not equal 50948E and 54806L and 54821. Help Me Obi Wan Kenobi, You're My Only Hope.
 
Yes use the IN operator with the NOT operator, like this:

NOT IN (50948E, 54806L, 54821)

Regards,
John, vb_doc@hotmail.com
 
I recommend using an in clause. For example:
[tt]
SELECT *
FROM YourTable
WHERE Not YourField In ('50948E','54806L','54821')
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top