ACC2000: Cannot Rename or Delete Custom Shortcut Menus (207854)
The information in this article applies to:
This article was previously published under Q207854 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
SYMPTOMS
If you create a custom shortcut menu, you are unable to rename or
delete the menu until you change its Type property setting to Toolbar.
RESOLUTION
To rename or delete a custom shortcut menu, you must first change its Type property back to Toolbar. You may also delete the shortcut menu by using Visual Basic for Applications code in the Immediate window. CAUTION: If you follow the steps in this example, you modify the sample database Northwind.mdb. You may want to back up the Northwind.mdb file and follow these steps on a copy of the database. Method 1: Changing the Type PropertyNOTE:The following steps assume that you have created the shortcut menu Custom 1, using the example from the "More Information" section below.
- Start the application in which you created your custom shortcut menu. For this example, start Microsoft Access and open the sample database Northwind.mdb or the sample project NorthwindCS.adp.
- On the View menu, point to Toolbars, and then click Customize.
- On the Toolbars tab, click Properties.
- Click Custom 1 in the Selected Toolbar list.
- Click Toolbar in the Type list, and then click Close.
- On the Toolbars tab, click Custom 1 in the Toolbars list.
Note that the Rename and Delete buttons are now available in the Customize dialog box.
Method 2: Using Visual Basic for Applications Code in the Immediate Window- Open the Immediate window by pressing CTRL+G.
- Type the following line in the Immediate window
Application.CommandBars("Custom 1").Delete
and then press ENTER.
Note that the Custom 1 shortcut menu is deleted.
You need to be cautious about using this method because there is no confirmation dialog box allowing you to choose not to delete the shortcut menu.
REFERENCESFor more information about pop-up or shortcut menus, click Microsoft Access Help on the Help menu, type work with menu bars and shortcut menus in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Major | Last Reviewed: | 6/28/2004 |
---|
Keywords: | kbprb kbui KB207854 |
---|
|