Not LIKE [pattern] criteria includes NULLs?

  • Thread starter Thread starter ronaldlum
  • Start date Start date
R

ronaldlum

The subject of this post basically outlines the question. If I use a
Not LIKE [pattern] under criteria for a select query, will the query
pick up records with a NULL value?
 
No, it won't.

Wouldn't it have been faster just to try it than to post a question?
 
The subject of this post basically outlines the question. If I use a
Not LIKE [pattern] under criteria for a select query, will the query
pick up records with a NULL value?

Nope. NULL is not equal to anything, not LIKE anything, not *unequal* to
anything, and not NOT LIKE anything. Any comparison with NULL returns NULL,
which is treated as False by the query engine; the one exception is

IS NULL

John W. Vinson [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

Similar Threads

NOT function not working - can prove with screenshots 1
Is Null 2
Not Like - not working in query criteria 2
Access Dcount (multiple criteria) 3
Criteria from Form 3
Finding null 4
Help with "Like" in a query 6
Cascade queries 7

Back
Top