Row filtered out; can't figure out why

liamrowan

Registered User.
Local time
Today, 04:14
Joined
Jul 15, 2010
Messages
54
XP/Access 2010

I have a table with a column that has only blank cells or an "x". In the qry based on the table, the criteria for this column is <>"x". All of the rows that have "x" are filtered out as expected, but there is one lone row that has a blank cell in the column used for filtering that does not show up in the qry results! I can't even come up with a theory why, since clearly there is no "x" in the cell on which the query is filtering for this row.

When I remove the criteria completely, all the rows that have "x" in the cell show up in the return as expected, along with this single row that does not have an "x". Why would <>"x" filter out a row that does not have "x" in the filtered column, and allow it back in the return when the filter is removed!?

Thx for ideas, William
 
It probably has a null value so the query fails on ths row

try

nz(yourfield)<>"x"
 
Appreciate the responses. The null cells were the issue.

WM
 

Users who are viewing this thread

Back
Top Bottom