Run a macro that is in a macro group
To run a macro that is in a macro group, do one of the following:
- Specify the macro as an event property setting on a form or report or as the Macro Name argument of the RunMacro action. Refer to the macro using this syntax:
macrogroupname.macroname
For example, this event property setting runs a macro called Categories in a macro group called Form Switchboard Buttons:
Forms Switchboard Buttons.Categories
- On the Tools menu, point to Macro, click Run Macro, and then select the macro from the Macro Name list. When macro names appear in lists, Microsoft Access includes an entry for each macro in each macro group.
- Run a macro that is in a macro group from a Visual Basic procedure by using the RunMacro method of the DoCmd object, with the syntax shown previously to refer to the macro.