Can I display numeric zero values in crosstab query reports?

G

Guest

Using a report bound to a crosstab query, I would like to view numeric zero
values within a 'Total: Count' field. My intent is to use the same type of
format report when count values may vary during specific time periods (i.e.:
# of events during specific start and stop dates). At present, when my data
changes and I have zero events, the current format of the report bound to
this query returns an error stating that it does not recognize a field which
exists in the present format of the report - this I understand: since there
is no data to be 'counted" there is no column header generated and thus an
unrecognized field, BUT I would like to keep the column header and report a
'ZERO' for that given event within that specific time period even though
there is nothing to 'count'. Is there any way to accomplish this magic?
 
D

Duane Hookom

You can enter all of your potential column headings into the Column Headings
property of the crosstab query.

To get zeros rather than nulls, you can use a value column of something
like:
Val(Nz(Count([YourField]),0))
 
G

Guest

Thank You! You have been VERY helpful!!

Duane Hookom said:
You can enter all of your potential column headings into the Column Headings
property of the crosstab query.

To get zeros rather than nulls, you can use a value column of something
like:
Val(Nz(Count([YourField]),0))

--
Duane Hookom
MS Access MVP

Stan_B said:
Using a report bound to a crosstab query, I would like to view numeric
zero
values within a 'Total: Count' field. My intent is to use the same type
of
format report when count values may vary during specific time periods
(i.e.:
# of events during specific start and stop dates). At present, when my
data
changes and I have zero events, the current format of the report bound to
this query returns an error stating that it does not recognize a field
which
exists in the present format of the report - this I understand: since
there
is no data to be 'counted" there is no column header generated and thus an
unrecognized field, BUT I would like to keep the column header and report
a
'ZERO' for that given event within that specific time period even though
there is nothing to 'count'. Is there any way to accomplish this magic?
 

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