How to Create Access Reports with Monthly, Yearly, and Grand Totals
Question details
The user needs to create a report in Microsoft Access that calculates and displays monthly sales totals, yearly totals, and a grand total for multiple products without repeating values.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Designing a database report from a crosstab query to summarize sales data by time periods.
- Observed behavior
- The report needs to group records appropriately to display distinct monthly totals followed by a yearly summary and a final grand total at the end of the report.
Ensure your underlying table or crosstab query contains a valid date/time field and the numeric fields you intend to sum for your product totals.
Use Grouping and Sorting with Date Format Expressions
Apply date formatting expressions to group records by year and month, and utilize group footers for calculating subtotals and grand totals.
To achieve multi-level summarization without duplicating detail records, you must structure your report using the Group, Sort, and Total feature. By grouping on formatted date fields, you can isolate the monthly and yearly data buckets, leaving the report footer for the grand total.
Right-click your target report in the Navigation Pane and select 'Design View'.
On the Report Design tab, click 'Group & Sort' to open the Group, Sort, and Total pane at the bottom of the screen.
Click 'Add a group' and choose 'Expression'. Enter the expression Format([Book Date], "yyyy") to group the data by year. Ensure the 'with a footer section' option is selected in the 'More' dropdown.
Click 'Add a group' again to create a subgroup. Choose 'Expression' and enter Format([Book Date], "yyyy mm"). Ensure this also has a footer section.
In both the month and year Group Footers, add a text box control. Set their Control Source to =Sum([YourFieldName]) to calculate the respective totals.
Scroll down to the Report Footer (not the Page Footer). Add a text box control and set its Control Source to =Sum([YourFieldName]) to calculate the grand total for the entire report.

Looking for a Free Alternative for Your Daily Office Tasks?
While WPS Office does not include a database management tool like Access, it provides powerful, free alternatives for Word, Excel, and PowerPoint. You can easily manage data, calculate totals, and create summary reports using WPS Spreadsheet, which is fully compatible with Microsoft Excel.
- 1. Export Access Data: Export your Microsoft Access query results to an Excel or CSV file format.
- 2. Open in WPS Spreadsheet: Launch WPS Spreadsheet and open the exported data file.
- 3. Create a Summary Report: Go to the Insert tab, select PivotTable, and drag your date fields into rows to instantly group by month and year with automated subtotals and grand totals.

Frequently Asked Questions
How do I hide the detail section to only show monthly and yearly totals in Access?
In Design View, right-click the Detail section of your report, select Properties, and change the 'Visible' property on the Format tab to 'No'. This hides the individual records while keeping your group footers and totals visible.
Why are my grand totals not calculating correctly in the Page Footer?
The =Sum() function cannot evaluate correctly inside a Page Footer because it attempts to sum only the data on the current physical page. To calculate a grand total for the entire dataset, you must place your calculated text box in the Report Footer.
Can I group dates by quarter in an Access report?
Yes, you can group by quarters using a similar date expression. In the Grouping and Sorting pane, add a group using the expression Format([YourDate], "yyyy-q") to group your data by both the year and the quarter.




