I have a table as follows
WorkorderListID
Workorder
Workorder_Name
Wo_Status
All Short Text, except WorkorderListID which is autonumbered.
Wo_Status contains one of two entries: N or C
Running the following query, I noticed that one expected record was not being returned. This seems to be because for this one record Wo_Status is blank. If I remove the criteria from the query, the record is returned.
SELECT tbl_WorkorderList.Workorder, tbl_WorkorderList.Workorder_Name, tbl_WorkorderList.Wo_Status
FROM tbl_WorkorderList
WHERE (((tbl_WorkorderList.Wo_Status)<>"C"))
ORDER BY tbl_WorkorderList.Workorder;
This is probably Access101, and I'm missing something obvious, but I would have thought that a blank field was not equal to C.
I'll workround it by checking that the field is filled on the form, but am puzzled why it's treating blank as equal to C.
WorkorderListID
Workorder
Workorder_Name
Wo_Status
All Short Text, except WorkorderListID which is autonumbered.
Wo_Status contains one of two entries: N or C
Running the following query, I noticed that one expected record was not being returned. This seems to be because for this one record Wo_Status is blank. If I remove the criteria from the query, the record is returned.
SELECT tbl_WorkorderList.Workorder, tbl_WorkorderList.Workorder_Name, tbl_WorkorderList.Wo_Status
FROM tbl_WorkorderList
WHERE (((tbl_WorkorderList.Wo_Status)<>"C"))
ORDER BY tbl_WorkorderList.Workorder;
This is probably Access101, and I'm missing something obvious, but I would have thought that a blank field was not equal to C.
I'll workround it by checking that the field is filled on the form, but am puzzled why it's treating blank as equal to C.