Sets or returns the value of the On Page box in the Properties window of a report. Read/write String.
expression.OnPage
expression Required. An expression that returns one of the objects in the Applies To list.
The Page event occurs after Microsoft Access formats a page of a report for printing, but before the page is printed.
The OnPage value will be one of the following, depending on the selection chosen in the Choose Builder window (accessed by clicking the Build button next to the On Page box in the report's Properties window):
If the On Page box is blank, the property value is an empty string.
The following example prints the value of the OnPage property in the Immediate window for the "Purchase Order" report.
Debug.Print Reports("Purchase Order").OnPage