Either my files are behaving badly, or I just came across something that probably has caused me a lot of mistaken queries in the past. Maybe I should've known.
Given table TblA, with the following fields:
ID: "1", "2", "3"... (text field, no duplicates)
Group: "0", "", "1" (text field, and the "" is a true null)
Value: 54.8, 64.3, 255.3... (double field)
select records with query QryChoose, given by the sql string:
SELECT TblA.ID,TblA.Value, TblA.Group
FROM TblA
WHERE (Not (TblA.Group)="1");
I have discovered that this "not equal to" criteria in the WHERE clause doesn't just omit the records with a value of 1 in the Group field, but also omits all the records with a null in that field. What have I done wrong?