DoCmd.AddMenu (Access)
The AddMenu method carries out the AddMenu action in Visual Basic.
You can use the AddMenu action to create a:
AddMenu (MenuName, MenuMacroName, StatusBarText)
Dim strMenuName As String: strMenuName =
Dim strMenuMacroName As String: strMenuMacroName =
DoCmd.AddMenu MenuName:=strMenuName, MenuMacroName:=strMenuMacroName
Arguments
The following arguments are required:
MenuName (String) - A string expression that's the valid name of a drop-down menu to add to the custom menu bar or global menu bar. To create an access key so that you can use the keyboard to choose the menu, type an ampersand (&) before the letter you want to be the access key. This letter will be underlined in the menu name on the menu bar.
MenuMacroName (String) - A string expression that's the valid name of the macro group that contains the macros for the menu's commands. This is a required argument.
Optional arguments
The following argument is optional
StatusBarText (String) - A string expression that's the text to display in the status bar when the menu is selected.