Count Query with no values

T

The Pikey

I have a Select Query which amalgamates four different Count queries into
one. The problem i'm having is that if one of the Count queries hasn't
returned a value then the Select query doesn't return any values at all.
I've tried entering several permuations of "Is Null" in the criteria for the
two count queries which could have no values, but to no avail. Any advice
would be helpful.
 
J

JohnFol

when you "alamgamate" the 4 different queries into 1, you must be using a
join. Make sure the join allows Null values from the tables that have no
matching records. You can then do an

iif (IsNull(MyQuery1!Count), 0, MyQuery1!Count)

or have a look at the DCount / DLookup functions.
 

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