DoCmd.OpenDataAccessPage Method (Access)
The OpenDataAccessPage method carries out the OpenDataAccessPage action in Visual Basic.
Syntax
expression .OpenDataAccessPage(DataAccessPageName, View)
expression An expression that returns a DoCmd object.
Parameters
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, then in the current database. |
View |
Optional |
AcDataAccessPageView |
The view in which to open the data access page. In Microsoft Access 2010, this must be set to acDataAccessPageBrowse. |