Page Property [Access 2003 VBA Language Reference]

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


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


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.


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

Applies to | Form Object | Report Object

See Also | Circle Method | Format Property | Line Method | NoData Event | Page Object | Pages Collection | Pages Property | Print Method | PSet Method