Share via


Report.Page Property (Access)

The Page property specifies the current page number when a report is being printed. Read/write Long.

Syntax

expression .Page

expression A variable that represents a Report object.

Remarks

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.

Example

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

See Also

Concepts

Report Object

Report Object Members