DoCmd.SetDisplayedCategories method (Access)
Specifies which categories are displayed under Navigate to Category in the title bar of the navigation pane.
Syntax
expression.SetDisplayedCategories (Show, Category)
expression A variable that represents a DoCmd object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Show | Required | Variant | Set to Yes to show the category or categories. Set to No to hide them. |
Category | Optional | Variant | The name of the category that you want to show or hide. Leave blank to show or hide all categories. |
Remarks
For example, if you want to prevent users from switching the navigation pane so that it displays objects sorted by Created Date, you can use this method to hide that option in the title bar's drop-down list.
The caption in the title bar of the navigation pane indicates which filter, if any, is currently active. Click anywhere in the bar to display the drop-down list. The items that this method controls are listed under Navigate to Category.
This method only enables or disables the display of the specified category or categories; it does not perform any switching of the navigation pane display. For example, if you are displaying objects sorted by Creation Date and you use the SetDisplayedCategories method to disable the Creation Date option, Access does not switch the navigation pane to another category.
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기