Using "not" criteria

K

Karin

I want to return all records that do not have "ABC" in the
company field. Using "not 'ABC'" also eliminates records
which have no data in the company field.

How do I create a query that doesn't return ABC, but does
return null and all other records.

Thank you,
Karin
 
K

Karin

Unfortunately, that gives me the same records. (ABC, in
this instance, would not need "*'s" as it is the entire
string in that field.)
Thank you for responding.
 
J

John Verhagen

Make this your where clause:
WHERE ((Not ([YourField])="ABC")) OR ((([YourField]) Is Null));
 
K

Karin

Thank you. I had one of those "Duh" moments.
-----Original Message-----
Make this your where clause:
WHERE ((Not ([YourField])="ABC")) OR ((([YourField]) Is Null));

Karin said:
Unfortunately, that gives me the same records. (ABC, in
this instance, would not need "*'s" as it is the entire
string in that field.)
Thank you for responding.


.
 

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

Top