H
H. Williams
There appears to be a bug in Microsoft Access when you create queries with
"Not Like" logic. The queries will not display any records where the
corresponding field is blank.
For example:
Select [Notes] From [Contacts] Where [Notes] Not Like "*abc*";
This should display every record where the notes field does not contain abc.
Instead it displays every record where the notes does not contain abc and
the notes fields is not null. In other words, all records with blank notes
fields gets improperly excluded.
I know this can be fixed by changing the query to:
Select [Notes] From [Contacts] Where [Notes] Not Like "*abc* OR [Notes] Is
Null";
Still this is hard to explain to most users.
"Not Like" logic. The queries will not display any records where the
corresponding field is blank.
For example:
Select [Notes] From [Contacts] Where [Notes] Not Like "*abc*";
This should display every record where the notes field does not contain abc.
Instead it displays every record where the notes does not contain abc and
the notes fields is not null. In other words, all records with blank notes
fields gets improperly excluded.
I know this can be fixed by changing the query to:
Select [Notes] From [Contacts] Where [Notes] Not Like "*abc* OR [Notes] Is
Null";
Still this is hard to explain to most users.