Show a Report Footer Total on the Last Page in Microsoft Access
Question details
The user wants a calculated total to appear in the page footer only on the final page of a multi-page Access report.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- A multi-page report needs to display an aggregate total in the last page footer.
- Observed behavior
- The calculated text box is currently in the Page Footer, where aggregate calculations cannot be performed.
Open the report in Design View and identify the fields in its Record Source that are needed for the total. Check that the Report Footer and Page Footer sections are available; enable them from the Design tab if necessary.
Calculate the total in the Report Footer and display it on the last page
Use a hidden Report Footer control for the aggregate and a Page Footer control to display it only on the final page.
In Design View, add a text box to the Report Footer. On the Property Sheet, set its Name to txtGrandTotal and its Control Source to an aggregate expression based on a field in the report's Record Source, such as =Sum([Amount]).
Select txtGrandTotal and set Visible to No on the Property Sheet. This keeps the calculation in the Report Footer without displaying that control.
Add a separate text box to the Page Footer and set its Control Source to =IIf([Page]=[Pages],[txtGrandTotal],Null).
Open the report in Print Preview and navigate through its pages. Confirm that the total is blank on earlier pages and appears on the final page.

Work with report data in WPS Office
WPS Office is a free, lightweight alternative for working with office documents and spreadsheet data. Its familiar interface and Microsoft Office format compatibility make it easy to move compatible files between applications. It does not replace Microsoft Access for designing Access reports.

Frequently Asked Questions
Why can't I calculate the aggregate directly in the Page Footer?
Access does not support aggregate operations in a Page Footer. Put the aggregate expression in a Report Footer text box, then reference that text box from the Page Footer.
How does the text box know it is on the last page?
The expression =IIf([Page]=[Pages],[txtGrandTotal],Null) compares the current page number with the total page count. It returns the total when they match and Null otherwise.
Which fields should I use in the total expression?
Use fields from the report's Record Source, such as =Sum([Amount]), along with any required calculations. Avoid using names of controls generated in group sections.
What if the Report Footer is not visible in Design View?
Open the report in Design View and enable the Report Header/Footer sections from the Design tab. Then add the aggregate text box to the Report Footer.




