Article ID: 296249 - View products that this article applies to.
This article was previously published under Q296249
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
Moderate: Requires basic macro, coding, and interoperability skills.
For a Microsoft Access 97 version of this article, see 132017
In a Microsoft Access report, you can sum a column of numbers by group or over the entire report, but there is no built-in way to print the sum of a column on each page of a report. This article shows you how you can use code to print the sum of a column of numbers on each page of a report. The code assumes the field that you are summing is a Number field.
You can print the sum of a column on each page of a report in two ways. You can sum the column of each page, and then add the total to the total of each subsequent page (a running sum). Or you can sum the column of each page separately.
Creating the Report to Be Used in the Examples
Creating a Running Sum for the Entire Report with Subtotals on each Page
Summing a Column for Each Page Separately
For more information about running sums, click Microsoft Access Help on the Help menu, type running sum in a report in the Office Assistant or the Answer Wizard, and then click Search to view the topics returned.
Article ID: 296249 - Last Review: September 26, 2005 - Revision: 4.1
Contact us for more help