Report.Page property (Access)
The Page property specifies the current page number when a report is being printed. Read/write Long.
expression A variable that represents a Report object.
Although you can set the Page property to a value, you most often use this property to return information about page numbers.
This property is only available in Print Preview or when printing.
The following example updates the report's caption to display the current position in the report as the user pages back and forth in the report.
Private Sub Report_Page() Me.Caption = "Now Viewing Page " & Me.Page & " Of " & Me.Pages & " Page(s)" End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.