NavigateTo Macro Action
You can use the NavigateTo action to control the display of database objects in the Navigation Pane. For example, you can change how the database objects are categorized, and you can filter the objects so that only certain ones are displayed.
The NavigateTo action has the following arguments.
|Category||Required. The category by which you want the Navigation Pane to display objects. Click Object Type, Tables and Views, Modified Date, Created Date, or Custom in the Category box.|
|Group||Optional. The Group argument limits which objects in the category appear in the Navigation Pane. If you leave the Group argument blank, the Navigation Pane displays all database objects, categorized by the criteria you specify in the Category argument. Examples of valid Group arguments for the various Category arguments are shown in the following table.|
This action is similar to selecting categories and groups from the title bar of the Navigation Pane.
Valid Group arguments depend on which Category argument is used. If you enter an invalid Group argument, an error message appears.
The following table contains examples of valid Group arguments for each Category argument.
Category argument Example Group arguments Object Type Tables; Forms; Queries; Pages; Macros; Modules Tables and Views Names of specific tables in your database Modified Date Today; Yesterday; Last Month; Older Created Date Today; Yesterday; Last Month; Older Custom category Names of groups you have created for the specified custom category
To run the NavigateTo action in a VBA module, use the NavigateTo method of the DoCmd object.
** Note ** To navigate to the top level of a category (for example, All Tables, All Access Objects, or All Dates), you must leave the Group argument blank. For example, when the Category argument is Object Type, entering All Access Objects as a Group argument results in an error.