Table of contents
Collapse the table of content
Expand the table of content

DoCmd.OpenDataAccessPage Method (Access)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

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


expression. OpenDataAccessPage( ** DataAccessPageName, ** View )

expression An expression that returns a DoCmd object.


NameRequired/OptionalData TypeDescription
DataAccessPageNameRequiredVariantA 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.
ViewOptionalAcDataAccessPageViewThe view in which to open the data access page. In Access, this must be set to acDataAccessPageBrowse.

See also


DoCmd Object

© 2017 Microsoft