Access Macros  «Prev  Next»

Lesson 3Creating an Access macro by using the Macro Builder
Objective Use the Access Macro Builder to create and run an Access macro.

Creating Access Macro using Macro Builder

Now that you have some idea of where Access macros are used, let us take a look at how they are created by using the Macro Builder. First, let us take a look at this MouseOver of the Access Macro Builder, showing you how to open the Clients form by using a macro.
Open Clients Form
  1. This is where you type the name of the macro.
  2. This is a list of macro Actions from which you can select.
  3. This column is used for documenting your macros. By documenting your macros you can remember what the purpose was for the macro and also help others who have to help maintain the macro
  4. Action Arguments specify the parameters used with each action. They will change based on the Action you choose.

Access Macro Builder
To create a new macro in Access, follow the steps below:
  1. Click the Macros list in the Database window.
  2. Click the New button. You will be presented with a blank Macro Builder.
  3. Specify the Macro Name.
  4. Pick the Macro Action to perform.
  5. Type in a comment to document your macro.
  6. Fill in the Action Arguments.
You have now completed the macro.

There are 54 possible macro actions that you can use, which allow you to automate transferring objects back and forth between your database and another Access database or file format. For help on any of the actions select the item from the list and press F1.
In the next lesson, you will learn how to assign a macro to a command button on a form by using the OnClick event of a command button.

Message Boxes Forms Macro

Click the link below to practice creating a macro that displays a message box then opens a form.
Message Boxes Forms Macro