"not like" query

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

Guest

I need to filter a query with something on the order of:
not like "R*" and not like "T*" and not null
unfortunately, I believe there is no "not like" command in access other than
in ADP.

If I went the route of using <>, I would have to be explicit about each of
the 30 possibilities as the <> paramater does not accept a wildcard.

Suggestions?
 
'Not Like' works just find in MDBs, Brad.

SELECT tblTest.TestText
FROM tblTest
WHERE (((tblTest.TestText) Not Like 'r*' And (tblTest.TestText) Not Like
't*' And (tblTest.TestText) Is Not Null);
 
"not like" does not work in a query

Brendan Reynolds said:
'Not Like' works just find in MDBs, Brad.

SELECT tblTest.TestText
FROM tblTest
WHERE (((tblTest.TestText) Not Like 'r*' And (tblTest.TestText) Not Like
't*' And (tblTest.TestText) Is Not Null);
 
My apologies - For some reason, which I have not yet figured out, the query I
was working on would not accept the "not Like" parameter. I created a new
query and it worked just fine.

Thank you.
 

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