DoCmd.NavigateTo (Access)

You can use the NavigateTo method 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. 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.

NavigateTo (Category, Group)


DoCmd.NavigateTo

Arguments

Optional arguments

The following arguments are optional

Category (String) - The category by which you want the navigation pane to display objects.

Group (String) - Determines which objects in the category appear in the navigation pane. If you leave this argument blank, the navigation pane will display all database objects grouped by the criteria that you specify in the Category argument. Examples of valid Group arguments for the various Category arguments are shown in the table under Remarks.