Null fields

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
 
D

Danny Lesandrini

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
 
M

Marshall Barton

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).
 
C

Candace

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

Top