Page Property

Microsoft Access Visual Basic

expression.Page

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

Although you can set the Page property to a value, you most often use this property to return information about page numbers.

You can use the Page property in an expression, a macro, or Visual Basic.

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