Summary row in crosstab query?

D

Danny

Howdy.

Is it possible to add a row to a crosstab query that totals each column in
the query?

Thanks.

Danny
 
K

KARL DEWEY

Yes, create a totals query of the data with a calculated field containing "~
Total" (I am not sure but I think the tilda sorts out after 'Z') in the same
field as will be the row data.
Then use a union query to combine a select query and the totals query.
Use the union query for the crosstab query.
 
J

John Spencer

Do you mean you want a total of the row (going across)? The answer is Yes.
Do you mean you want a total for each column (going down)? The answer is No.

Well, you could get column totals (vertically) by using a Union query of the
crosstab query and another query that uses the crosstab as a source to get a
grand total of each column.


John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County
 
D

Danny

I'll give the union query a try - thanks.

KARL DEWEY said:
Yes, create a totals query of the data with a calculated field containing "~
Total" (I am not sure but I think the tilda sorts out after 'Z') in the same
field as will be the row data.
Then use a union query to combine a select query and the totals query.
Use the union query for the crosstab query.
 

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