SELECT Vendor, Qty, Item FROM POs
WHERE (
Item Like”*This*” Or Item like “*That*” AND
Vendor Not Like “*(Tng Vendor)*” or Vendor = Null
);
If you set up a query to filter out records with a certain value in a field, you are, in effect, creating a filter that filters out not _only_ that value, but any records that might have NULLs in that field!!!!!
I was unaware of that, and I think this is a significant “gotcha” that probably should be widely known, and maybe, it is!
I solved the problem in the Vendor line above by putting in the actual check for null besides the check for not (the name of our usual training vendor).
(Vendor fld. is text, allow zero length = no, required = no, Access 97 db on Win95.)
I had to learn it the hard way, on a small, inconsequential (“just for our office”) project, but I wonder how many other, more important queries I might have let out the door without regarding this!
Am I the last person in the Access World to know this? Aaauuuughhhh!
thx
Pat