Connecting Tech Pros Worldwide Forums | Help | Site Map

Null values on crosstab query

Nobby
Guest
 
Posts: n/a
#1: Jul 30 '07
On a crosstab query, I often produce reports that show Counts of
values. the problem that I have is that where there are no counts, no
values are returned i.e. there are blank cells.

Is there an easy way in which to automatically replace these null
values with a zero?

Many thanks.


paii, Ron
Guest
 
Posts: n/a
#2: Jul 30 '07

re: Null values on crosstab query


set the control source to =nz([FieldName],0)

But why?. Most reports I have seen based on crosstab look better with blanks
instead of 0 plus you can tell which have values that happen to sum to 0.

"Nobby" <shaneclark@dsl.pipex.comwrote in message
news:1185793778.085484.70110@b79g2000hse.googlegro ups.com...
Quote:
On a crosstab query, I often produce reports that show Counts of
values. the problem that I have is that where there are no counts, no
values are returned i.e. there are blank cells.
>
Is there an easy way in which to automatically replace these null
values with a zero?
>
Many thanks.
>

RASTUS
Guest
 
Posts: n/a
#3: Jul 30 '07

re: Null values on crosstab query


Set the Default Value for the field in the table to 0

"Nobby" <shaneclark@dsl.pipex.comwrote in message
news:1185793778.085484.70110@b79g2000hse.googlegro ups.com...
Quote:
On a crosstab query, I often produce reports that show Counts of
values. the problem that I have is that where there are no counts, no
values are returned i.e. there are blank cells.
>
Is there an easy way in which to automatically replace these null
values with a zero?
>
Many thanks.
>

RASTUS
Guest
 
Posts: n/a
#4: Jul 30 '07

re: Null values on crosstab query


Set the Default Value for the field in the table to 0


RASTUS
Guest
 
Posts: n/a
#5: Jul 30 '07

re: Null values on crosstab query


Set the Default Value for the field in the table to 0

"Nobby" <shaneclark@dsl.pipex.comwrote in message
news:1185793778.085484.70110@b79g2000hse.googlegro ups.com...
Quote:
On a crosstab query, I often produce reports that show Counts of
values. the problem that I have is that where there are no counts, no
values are returned i.e. there are blank cells.
>
Is there an easy way in which to automatically replace these null
values with a zero?
>
Many thanks.
>

Allen Browne
Guest
 
Posts: n/a
#6: Jul 31 '07

re: Null values on crosstab query


See:
Crosstab query techniques
at:
http://allenbrowne.com/ser-67.html#DisplayZero

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Nobby" <shaneclark@dsl.pipex.comwrote in message
news:1185793778.085484.70110@b79g2000hse.googlegro ups.com...
Quote:
On a crosstab query, I often produce reports that show Counts of
values. the problem that I have is that where there are no counts, no
values are returned i.e. there are blank cells.
>
Is there an easy way in which to automatically replace these null
values with a zero?
>
Many thanks.
>
Closed Thread