12/30/2023 0 Comments Ms access menu examplesIn the Access Options dialog box, click Current Database. Custom shortcut menus that you have attached to specific forms, reports, or controls are not affected. This procedure replaces all of the default shortcut menus in the current database. The next time you open the form or report and then right-click the form, report or control, you'll see your shortcut menu with the associated commands, as shown in the following illustration: Make sure the Shortcut Menu property is set to Yes. On the Other tab on the Property Sheet, in the Shortcut Menu Bar property box, type the name of the macro object that you created in Step 2 (in this example, “mcrAddShortcutMenu”). To select the entire object, select Form or Report from the list at the top of the Property Sheet task pane. Select the control or object to which you want to attach the shortcut menu. In the Navigation Pane, right-click the form or report where you want the shortcut menu to appear, and then click Design View. Use this procedure if you want the menu to appear when you right-click a specific form, report, or control. Click the tab to see the menu, as shown in the following illustration:įor more information about Ribbon customization techniques, such as adding custom tabs or hiding the default tabs, see the article Create a custom ribbon in Access.Īdd the menu as a shortcut menu for a form, report, or control The next time you open the form or report, the Add-Ins tab appears in the Ribbon. On the Other tab on the Property Sheet, in the Menu Bar property box, type the name of the macro object that you created in Step 2 (in this example, “mcrAddShortcutMenu”). Select the entire object by selecting Form or Report from the list at the top of the Property Sheet task pane. On the Design tab, in the Tools group, click Property Sheet. In the Navigation Pane, right-click the form or report where you want the menu to appear, and then click Design View. Use this procedure if you want the menu to appear on the Add-Ins tab for a specific form or report. Step 3: Attach the menu to a control, form, report, or databaseĭepending on where you want the menu to appear, use one or more of the following procedures.Īdd the menu to the Add-Ins tab of a form or report The following illustration shows an example menu macro object that creates the menu we designed in Step 1. Save and name this second macro object, for example, mcrAddShortcutMenu. In the Menu Macro Name argument box, enter the name of the macro object that you created in Step 1. If the menu is added as a shortcut menu in Step 3, the Menu Name argument is ignored. This argument is not required, but is recommended if, in Step 3, you plan to add the menu to a Ribbon tab (such as the Add-Ins tab of a form or report). In the Menu Name argument box for the AddMenu macro action, type the name of the menu (for example, "Form Commands"). In the Add New Action combo box on the macro design window, select AddMenu. On the Create tab, in the Macros & Code group, click Macro. This macro action is sometimes called the "menu macro". This step might seem redundant, but to create the shortcut menu from the macro object that you created in Step 1, you must create a second macro object that contains the AddMenu macro action. Step 2: Create a second macro object that creates the menu The following illustration shows an example macro object with three submacros for a custom menu or shortcut menu. Save and name the macro object for example, mcrShortcutMenuCommands. If there are more actions that you want to take place when you select this command, add them as separate macro actions within the same submacro. Within the submacro, select the first action you would like to take place when you click the command on the shortcut menu. This letter will be underlined on the menu. Tip: To create an access key so that you can use the keyboard to choose the command, type an ampersand (&) before the letter that you want to be the access key in the command name (for example, "&Refresh").
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |