• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 13. Customizing Access > Running and Testing a Macro

Running and Testing a Macro

To have a macro perform its actions, you must run it, or instruct it to execute its actions. There are two ways to run a macro. You can have the macro perform all the steps in a sequence at once, or you can test a macro by running it to perform one step at a time, allowing you to review the results of each step. By testing your macro, you might discover that it did not perform all its tasks in the way you expected. If so, you can make changes and retest the macro as you continue to make adjustments in Macro Design view. Keep in mind that a macro will perform only the actions that are appropriate in the currently active view, so be sure to display the correct view before you run the macro; you can have the first action in the macro display the view in which you want to run the macro.

Run a Macro in a Sequence

Display the macro you want to run in Macro Design view.

If your macro does not automatically switch you to the correct view, switch to the view in which you want to run the macro.

Click the Run button on the Macro Design toolbar.

If the macro encounters an action it cannot perform, a message box appears, indicating a problem.

If necessary, click OK to close the message box.

Click Halt to stop the macro.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint