Null Query

  • Thread starter Thread starter Tony
  • Start date Start date
T

Tony

i have a query to sort out "is not null" record.

However, i find there is null records in the result.

Then i revert the query to "null", however, there is no record.

apparently the visible "null" records are not null.

then i check through the table, the record has nothing in the field. the
field is a text field.

what's wrong? Thanks.
 
Tony

Are you sure the field is null, and doesn't contain a
space (text field)? Does the field allow Empty strings
("")?

You could look for them with the len() function.

Mark
 
Thanks Mark

Yes, the field is not allowed empty.

Allow empty is now disabled.

How can deal with these records(not null but nothing visable)? Is there
anything hidden? thx.
 
Tony said:
i have a query to sort out "is not null" record.

However, i find there is null records in the result.

Then i revert the query to "null", however, there is no record.

apparently the visible "null" records are not null.

then i check through the table, the record has nothing in the field. the
field is a text field.
Hi Tony,

One method would be

WHERE
Len(Trim([SomeField] & "")) >0;

instead of

WHERE
[SomeField] IS NOT NULL;

Please respond back if I have misunderstood.

Good luck,

Gary Walter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

#error - Blank 3
counting Null fields 3
Need null values for several fields in db 1
Null or NOT in another table 4
Using checkbox to edit criteria 3
WHERE mystery 2
Testing for null 4
Tallying Null fields 6

Back
Top