How to see blanks in a query?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I've got a list I've created and I want to create a query to see certain
records with blanks in them.

I have tried in my criteria to use Blank or Is Blank but it doesn't work. Am
I using the correct criteria.

Thanks very much for your help.

Regards
Janet
 
Try criteria of
IS Null
to get the records that are "Blank" in the field

Try criteria of
Is Not Null
to get the records that are not "Blank" in the field.
 
In rare cases, it is possible to get a zero length string rather than a Null.
If that is a possiblility, I use this formula to trap for both zero length
strings and Nulls.

Len(Trim(Nz([SomeField],""))) = 0
 
Thanks this is it

John Spencer said:
Try criteria of
IS Null
to get the records that are "Blank" in the field

Try criteria of
Is Not Null
to get the records that are not "Blank" in the field.
 
Thanks
Janet

Klatuu said:
In rare cases, it is possible to get a zero length string rather than a Null.
If that is a possiblility, I use this formula to trap for both zero length
strings and Nulls.

Len(Trim(Nz([SomeField],""))) = 0

John Spencer said:
Try criteria of
IS Null
to get the records that are "Blank" in the field

Try criteria of
Is Not Null
to get the records that are not "Blank" in the field.
 

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

Back
Top