DoCmd.OpenDataAccessPage method (Access)

The OpenDataAccessPage method carries out the OpenDataAccessPage action in Visual Basic.


expression.OpenDataAccessPage (DataAccessPageName, View)

expression An expression that returns a DoCmd object.


Name Required/Optional Data type Description
DataAccessPageName Required Variant A string expression that's the valid name of a data access page in the current database. If you execute Visual Basic code containing the OpenDataAccessPage method in a library database, Microsoft Access looks for the form with this name, first in the library database, and then in the current database.
View Optional AcDataAccessPageView The view in which to open the data access page. In Access, this must be set to acDataAccessPageBrowse.

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.