Link to home
Start Free TrialLog in
Avatar of myndwire
myndwire

asked on

Generate page numbers across multiple reports

I have a set of reports that all get printed at once. I'd like to be able to print consecutive page number on the reports as if it were one big report. Any ideas?
ASKER CERTIFIED SOLUTION
Avatar of tbsgadi
tbsgadi
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
In the page Footer Section of the report, create a text box and assign the following value in control source

="Page " & [Page] & " / " & [Pages]
Avatar of Jim Dettman (EE MVE)
There is nothing in Access to handle this.  You can do it, but you need to do all the work yourself using unbound text controls and a table or global variable to store the page count.  Here I'm going to use a global variable.
 In the page footers OnFormat event of each report, set the unbound text control do:
  Me![<myPageControlName>] = glngReportPageCount + 1

and in the page footer OnPrint event, do:
glngReportPageCount = glngReportPageCount  + 1
  Do that in each report.   If you want page # X of Y in each report, then that is quite a bit more complex.
JimD.