ACC: Displaying Totals for Each Row in Crosstab QueriesID: Q102517
|
Crosstab queries can display totals for each row. To do this, simply repeat the field used as the crosstab value and make it a crosstab row header.
The following steps explain how to create a crosstab query with row totals:
Query: XTAB With Row Totals
---------------------------------
Field: Company Name
Total: Group By
CrossTab: Row Heading
Field: Total Ordered: Subtotal (Subtotal is Order Amount in Microsoft
Access 1.x)
Total: Sum
CrossTab: Row Heading
Field: Ship Via
Total: Group By
CrossTab: Column Heading
Field: Subtotal
Total: Sum
CrossTab: Value
Query: XTAB With Row Totals
---------------------------------
Field: CompanyName
Table: Customers
Total: Group By
CrossTab: Row Heading
Field: Total Ordered: Subtotal
Table: Order Subtotals
Total: Sum
CrossTab: Row Heading
Field: ShipVia
Table: Orders
Total: Group By
CrossTab: Column Heading
Field: Subtotal
Table: Order Subtotals
Total: Sum
CrossTab: Value
For more information on creating crosstab queries, search the Help Index for crosstab queries, creating," or ask the Microsoft Access 97 Office Assistant.
Keywords : kbusage QryCross
Version : 1.0 1.1
Platform : WINDOWS
Issue type : kbinfo
Last Reviewed: March 25, 1999