Report.CurrentView property (Access)

Use the CurrentView property to determine how a report is currently displayed. Read/write Integer.

Syntax

expression.CurrentView

expression A variable that represents a Report object.

Remarks

The CurrentView property uses the following settings.

Setting Report displayed in:
0 Design view
5 Print Preview
6 Report view
7 Layout view

Use this property to perform different tasks depending on the current view. For example, an event procedure could determine which view the form is displayed in and perform one task if the form is displayed in Form view or another task if it's displayed in Datasheet view.

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.