Query Problem

S

Steve

Hi,

I am looking for a query to take 7 different fields, and produce a result if
ANY of the 7 fields are blank. If I use the "Is Null" function in each
field, it doesn't work because the query looks at that and says that ALL the
fields have to be blank to provide a result. Does anyone have any idea on
how to do this??
 
D

Duane Hookom

Try:

SELECT *
FROM [unnamedtable]
WHERE fld1+fld2+fld3+fld4+fld5+fld6+fld7 Is Null;
 
D

Daryl S

Steve -

If you use a different row criteria for each 'is null' criteria, this will
work. This means put the Is Null for the first of seven fields on the first
criteria row. Then put the Is Null for the second field on the second
criteria row. The criteria rows are 'OR', while all the criteria on one row
is considered 'AND'.
 

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

Blank Fields in NOT Null Query Criteria 5
Report Query 2
Returning null values 4
#error - Blank 3
Query Question 2
Report query / filters 2
Multiple parameter query 2
Query by Form 3

Top