Dear All,
I have a problem, I have a report which runs off a few queries.
Instead of creating 14 more queries I thought to use the DCount Function to enable me to use the queries to the best of my ability.
That worked fine when I used:
The above worked fine when I only had to look for catefories.
I then needed to count via categories and outcomes.
This opened a can of worms, because I can have categories without outcomes.
I tried the DCount function as below and it gave me an #Error
How do I use DCount to set multiple criteria?
Thank you for your forthcoming help
Thank you,
Kind regards
Triacona
I have a problem, I have a report which runs off a few queries.
Instead of creating 14 more queries I thought to use the DCount Function to enable me to use the queries to the best of my ability.
That worked fine when I used:
Code:
=DCount("REFVAL","SrNoiseCmplCount","[SRNOICAT]='INDUST'")
I then needed to count via categories and outcomes.
This opened a can of worms, because I can have categories without outcomes.
I tried the DCount function as below and it gave me an #Error
Code:
=DCount("REFVAL","SrNoiseOutCome","IIf([SRNOIOUT]='NUICEA',IIf([SRNOICAT]='INDUST'),0)")
Thank you for your forthcoming help
Thank you,
Kind regards
Triacona