Querys and filters

  • Thread starter Thread starter David Meyers via AccessMonster.com
  • Start date Start date
D

David Meyers via AccessMonster.com

When I filter my 985,000 Records by Zip code I see I have 100,000 records
without zip codes. When I Query this table for "" Nothing in the Zip code
field It only shows 2,800 records. Why? this also happens in othe fields as
Well. How to I fix my Query to find all "" nothings in a fields?
 
Presumably the records without Zip codes have Null, rather than a
zero-length string (""), as their value.

Use WHERE ZipCode IS NULL as your criteria.
 
Probably have a null value in some of the records and a zero-length string in
others. Try one of the following solutions.

Calculated field:

Field: ZipBlank: NZ([ZipCode],"")
Criteria: ""

That will be slow since it cannot use anyu index that you have on the field.
Faster will be to search for both variants of the criteria

Field: [ZipCode]
Criteria (Line1): = ""
Criteria (Line2): Is Null
 

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

linked table using SQL Query 8
Query Help 3
Zip Code Query 2
Query with Zip Code Mis-match (5 digit vs 9 digit) 2
Count Matching records 2
Making four queries into one 1
Duplicate Records 1
AND query 4

Back
Top