Thursday, December 15, 2016

OpenDataAccessPage Macro Action

OpenDataAccessPage Macro Action

You can use the OpenDataAccessPage action to open a data access page in Page view or Design view.

Note: This action will not be allowed if the database is not trusted. For more information about enabling macros, see the links in the See Also section of this article.

Setting

The OpenDataAccessPage action has the following arguments.

Action argument

Description

Data Access Page Name

The name of the page to open. The Data Access Page Name box in the Action Arguments section of the Macro Builder pane shows all pages in the current database. This is a required argument.

If you run a macro containing the OpenDataAccessPage action in a library database, Microsoft Office Access 2007 first looks for the page with this name in the library database, and then in the current database.

View

The view in which the data access page will open. Click Browse or Design in the View box. The default is Browse.

Remarks

This action is similar to double-clicking the data access page in the Navigation Pane, or right-clicking the data access page in the Navigation Pane and then clicking Design View.

To run the OpenDataAccessPage action in a Visual Basic for Applications (VBA) module, use the OpenView method of the DoCmd object.

No comments:

Post a Comment