DoCmd.OpenDataAccessPage (Access)

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

OpenDataAccessPage (DataAccessPageName, View)


Dim strDataAccessPageName As String: strDataAccessPageName = 
DoCmd.OpenDataAccessPage DataAccessPageName:=strDataAccessPageName

Arguments

The following argument is required

DataAccessPageName (String) - 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.

Optional arguments

The following argument is optional

View (AcDataAccessPageView) - The view in which to open the data access page. In Access, this must be set to acDataAccessPageBrowse.

Possible return values are acDataAccessPageBrowse, acDataAccessPageDesign.