ACC2000: How to Specify a Custom Starting-Page Number for a Report (210514)
The information in this article applies to:
This article was previously published under Q210514 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
For a Microsoft Access 2002 version of this article, see 299025.
SUMMARY
In Microsoft Access reports, page numbering always starts with the
number 1. However, you may want your report to have page numbering
that starts with some number other than 1. This article describes two
methods for defining custom starting-page numbers. Both methods provide
custom page numbers; however, the second method uses Visual Basic for
applications and can therefore include error checking. This method is
more complex, but avoids the possibility that a nonnumeric value will be
entered when you are prompted for a starting number.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. REFERENCESFor more information about the Page property, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type page, pages properties in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
For more information about looping structures, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type loops in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Major | Last Reviewed: | 6/23/2005 |
---|
Keywords: | kbdta kbhowto kbusage KB210514 |
---|
|