I haven't noticed this behaviour before, and it really has me scratching my head...
Using Access 2003
I have a table with 12,104 records in it. A query with no criteria returns 12,104 rows.
A query with Message Type = 'TMSG' returns 1,312 rows.
A query with Message Type <> 'TMSG' returns 6,586 rows.
By inspection, the missing rows all contain NULL in the message type field. It appears that using the <> condition has forced the query to ignore any records where the field has no value.
Adding an OR criteria of Message Type IS NULL adds the missing rows to the results, but this does not appear 'normal' to me.
Am I doing something wrong?
Using Access 2003
I have a table with 12,104 records in it. A query with no criteria returns 12,104 rows.
A query with Message Type = 'TMSG' returns 1,312 rows.
A query with Message Type <> 'TMSG' returns 6,586 rows.
By inspection, the missing rows all contain NULL in the message type field. It appears that using the <> condition has forced the query to ignore any records where the field has no value.
Adding an OR criteria of Message Type IS NULL adds the missing rows to the results, but this does not appear 'normal' to me.
Am I doing something wrong?