Gordon
Gordon
- Local time
- Today, 04:20
- Joined
- Nov 25, 1999
- Messages
- 34
I have a crosstab report with three columns:
Name C W Total
Paul 2 2 4
Jane 5 6 11
John 15
I would like to add a column that sums the values for each name (Total) - as shown above. For instance Paul's 2+2 = 4.
I created a text box in the report with the formula =([c]+[w]). This works, except for the row with John's information, which does not show anything since there is a null value in one of the the columns.
So, two questions.
(1) Is there a way to have the calculated field in the report include Null values?
(2) is there a more elegant way to do this in the crosstab query? I tried adding a column with the following in the query:
Field: Total:Report
Table: Master
Total: Sum
Crosstab: Row Heading
but Access balked and said there is a "Data Mismatch in Criteria Expression."
Thanks for any help.
Gordon
Name C W Total
Paul 2 2 4
Jane 5 6 11
John 15
I would like to add a column that sums the values for each name (Total) - as shown above. For instance Paul's 2+2 = 4.
I created a text box in the report with the formula =([c]+[w]). This works, except for the row with John's information, which does not show anything since there is a null value in one of the the columns.
So, two questions.
(1) Is there a way to have the calculated field in the report include Null values?
(2) is there a more elegant way to do this in the crosstab query? I tried adding a column with the following in the query:
Field: Total:Report
Table: Master
Total: Sum
Crosstab: Row Heading
but Access balked and said there is a "Data Mismatch in Criteria Expression."
Thanks for any help.
Gordon