|Access Developer Reference|
You can use the CurrentView property to determine how a report is currently displayed. Read/write Integer.
Version Added: Access 2007
expression A variable that represents a Report object.
The CurrentView property uses the following settings.
|Setting||Report Displayed In:|
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.