Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Generate page numbers across multiple reports

Posted on 2009-05-18
3
Medium Priority
?
291 Views
Last Modified: 2012-05-07
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?
0
Comment
Question by:myndwire
3 Comments
 
LVL 46

Accepted Solution

by:
tbsgadi earned 2000 total points
ID: 24418868
Hi myndwire,

You can make an unbound master report with  all your reports as Subreports



Gary
0
 
LVL 2

Expert Comment

by:krishrr
ID: 24419268
In the page Footer Section of the report, create a text box and assign the following value in control source

="Page " & [Page] & " / " & [Pages]
0
 
LVL 58
ID: 24421235
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.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question