Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selection criteria to find null fields

Status
Not open for further replies.

mps0

Instructor
Oct 2, 2001
4
US
I have a table with names, addresses, etc. Some of the records are missing ZIP codes, phone numbers, etc. How do I do a selection criteria to just show me the records with a null value in a particular field?
 
I'd limit the rows returned to those that are empty (empty being just as important as null, as a field might have contained data and then been manually replaced using the delete key or using spaces, rendering it blank, but not null).

Under the Report->Edit Record Selection->Record, add in something like:

isnull({MyTable.MyZip})
or
{MyTable.MyZip} = ""
or
isnull({MyTable.MyPhone})
or
{MyTable.MyZip} = ""
etc...

This will limit the rows returned to ONLY those that are empty or NULL. You might even add in a trim function...

-k kai@informeddatadecisions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top