Null fields

  • Thread starter Thread starter Candace
  • Start date Start date
C

Candace

Hi There,

I am trying to generate either a Query or a Report that shows all fields
that are Null. There are 3 columns in question, Staff Name, Hours, and
Month. Some of the fields are blank in all 3 but there are some where its
just the staff name missing or the hours. When I try to use IsNull it
returns only the records that are blank in all 3.

Please let me know how to proceed.

Thanks,

Candace
 
Candace, wouldn't it just be something like this ...

SELECT * FROM tblYourTable
WHERE [Staff Name] IS NULL
OR [Hours] IS NULL
OR [Month] IS NULL
 
Candace said:
I am trying to generate either a Query or a Report that shows all fields
that are Null. There are 3 columns in question, Staff Name, Hours, and
Month. Some of the fields are blank in all 3 but there are some where its
just the staff name missing or the hours. When I try to use IsNull it
returns only the records that are blank in all 3.


Put the Is Null criteria on different rows in the Criteria
list (that's why the row under Criteria is labeled Or).
When the criteria is all on the same row, they all must be
true (i.e. And).
 
That was perfect. Thanks so much!

Danny Lesandrini said:
Candace, wouldn't it just be something like this ...

SELECT * FROM tblYourTable
WHERE [Staff Name] IS NULL
OR [Hours] IS NULL
OR [Month] IS NULL

--
Danny J Lesandrini
(e-mail address removed)
www.amazecreations.com



Candace said:
Hi There,

I am trying to generate either a Query or a Report that shows all fields
that are Null. There are 3 columns in question, Staff Name, Hours, and
Month. Some of the fields are blank in all 3 but there are some where its
just the staff name missing or the hours. When I try to use IsNull it
returns only the records that are blank in all 3.

Please let me know how to proceed.

Thanks,

Candace
 

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

Query to find missing data 4
Query on two tables with matching null fields 4
Slow query 9
Query loses records? 5
Tallying Null fields 6
Returning null values 4
Testing for null 4
Slow query 1

Back
Top