Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
ACC2002: How to Specify a Custom Starting-Page Number for a Report
Article ID: 299025 - View products that this article applies to.
This article was previously published under Q299025
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 2000 version of this article, see 210514
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.
Method 1CAUTION: If you follow the steps in this example, you modify the sample database Northwind.mdb. You may want to back up the Northwind.mdb file and follow these steps on a copy of the database.
For 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.