I created a query with two colums; one column is the count the number of records and the other column sums another field based upon a certain criteria being met.
This information is printed in a report.(actually a subreport of the main report)
If no records in my database meet the defined criteria:
the coumn with the count shows a zero (0) my other column shows only a blank.
How do I get boths columns to print a zero in that situation?
Example:
query counts the number of familiies who live in Buncombe county as the first column and the second column is the sum of all of the members in each family.
If the criteria is met i.e. there are families who live in Buncombe county the report shows:
5 families 20 induviduals
If criteria is not met the report shows
0 families (blank) individuals
I tried NZ in the sum thinking it was null but that is not the case
Your thoughts are appreciated
This information is printed in a report.(actually a subreport of the main report)
If no records in my database meet the defined criteria:
the coumn with the count shows a zero (0) my other column shows only a blank.
How do I get boths columns to print a zero in that situation?
Example:
query counts the number of familiies who live in Buncombe county as the first column and the second column is the sum of all of the members in each family.
If the criteria is met i.e. there are families who live in Buncombe county the report shows:
5 families 20 induviduals
If criteria is not met the report shows
0 families (blank) individuals
I tried NZ in the sum thinking it was null but that is not the case
Your thoughts are appreciated