Mastering Macro Actions in Access

Victoria Jul 07, 2026

In the realm of Microsoft Access, macro actions are the building blocks of automation and efficiency. They allow users to streamline repetitive tasks, create custom forms and reports, and even add functionality that's not natively available. By understanding and harnessing the power of macro actions, you can transform Access from a simple database management system into a robust, dynamic application tailored to your specific needs.

Exploring Microsoft Access Pros And Cons
Exploring Microsoft Access Pros And Cons

Access macros are essentially a series of instructions that the software follows to perform specific tasks. These instructions, or actions, can be as simple as opening a form or as complex as running a series of calculations and updating records based on the results. The key to mastering macro actions lies in understanding the available actions and how to combine them to achieve your desired outcome.

Comment ajouter une macro à la barre d'outils d'accès rapide dans Office
Comment ajouter une macro à la barre d'outils d'accès rapide dans Office

Understanding Access Macro Actions

Access provides a wide range of macro actions that can be categorized into several groups, including form and control actions, record and field actions, report actions, and more. Each action is designed to perform a specific task, such as opening a form, navigating to a record, or running a calculation.

Access 2016: Create a Table
Access 2016: Create a Table

To begin working with macro actions, you'll first need to create a macro. This can be done by clicking on the 'Create' tab in the Ribbon, then clicking on 'Macro' in the 'Macros & Code' group. This will open the Macro Builder, where you can add, edit, and delete actions as needed.

Form and Control Actions

Microsoft Access 2013 Tutorial - Office 2013 Training | IT Online Training
Microsoft Access 2013 Tutorial - Office 2013 Training | IT Online Training

Form and control actions allow you to interact with the various forms and controls in your Access database. You can use these actions to open and close forms, navigate between records, and manipulate control values. For example, the 'OpenForm' action can be used to open a specific form, while the 'SetValue' action can be used to set the value of a control to a specific value.

Here's a simple example of how these actions can be used together. Let's say you want to create a macro that opens the 'Customers' form and navigates to the record for a specific customer:

  • OpenForm 'Customers', 'Form', 'CurrentCustomerID' = '123'
  • NavigateToRecord 'Customers', 'Form', 'CurrentCustomerID' = '123'
How to Use Macros in Microsoft Access 2013 - Examples of Macros and Using Autoexec
How to Use Macros in Microsoft Access 2013 - Examples of Macros and Using Autoexec

Record and Field Actions

Record and field actions allow you to interact with the data in your Access tables. You can use these actions to add, edit, and delete records, as well as to run calculations on field values. For instance, the 'AppendOnly' action can be used to add a new record to a table, while the 'RunCalculation' action can be used to update a calculated field.

Here's an example of how these actions can be used to add a new customer to the 'Customers' table:

How to Create a Relationship in Access: Deep Dive
How to Create a Relationship in Access: Deep Dive
  • AppendOnly 'Customers', 'Form', 'CustomerID' = 'New', 'CustomerName' = 'John Doe', 'ContactName' = 'Jane Doe'
  • RunCalculation 'Customers', 'Form', 'CustomerID'

Creating Custom Macro Actions

the settings menu in windows 10 and 8 with an arrow pointing to the options tab
the settings menu in windows 10 and 8 with an arrow pointing to the options tab
How to Automate Tasks in MS Access with Macros
How to Automate Tasks in MS Access with Macros
Microsoft Access Asset Tracking Management Database Templates for Microsoft Access 2016 Software - Verified: June 2026 ✅
Microsoft Access Asset Tracking Management Database Templates for Microsoft Access 2016 Software - Verified: June 2026 ✅
Create Outlook Contacts from Microsoft Access Forms | Automate with Macros!
Create Outlook Contacts from Microsoft Access Forms | Automate with Macros!
Tutorial - Creating a Contact Management Database (CRM) using Microsoft Access
Tutorial - Creating a Contact Management Database (CRM) using Microsoft Access
MS Access - Create Form
MS Access - Create Form
Macro To Open Query in MS Access 2007
Macro To Open Query in MS Access 2007
Microsoft Access Issues List Tracking Templates Database  for Microsoft Access 2016 Software - Verified: July 2026 ✅
Microsoft Access Issues List Tracking Templates Database for Microsoft Access 2016 Software - Verified: July 2026 ✅
Concatenation in Access. How to join fields together in Microsoft Access reports and queries.
Concatenation in Access. How to join fields together in Microsoft Access reports and queries.
Creating a Calculated Field in Microsoft Access 2019 and 365
Creating a Calculated Field in Microsoft Access 2019 and 365
Excel VBA UserForm with Navigation Buttons 🚀 | See it in Action! #shorts
Excel VBA UserForm with Navigation Buttons 🚀 | See it in Action! #shorts
5 Cool Microsoft Excel Macros for Sorting Data
5 Cool Microsoft Excel Macros for Sorting Data
Personal Macro Workbook (personal.xlsb)
Personal Macro Workbook (personal.xlsb)
Tutorial: How to create an Advanced Form in MS ACCESS
Tutorial: How to create an Advanced Form in MS ACCESS
How To Access and Enable VBA in Excel
How To Access and Enable VBA in Excel
Microsoft Access How to Use the Append Query
Microsoft Access How to Use the Append Query
5 macros I use to automate my Excel workbook
5 macros I use to automate my Excel workbook
Where To Store Your VBA Macro In? This Workbook or Personal Macro Workbook? Learn Now!
Where To Store Your VBA Macro In? This Workbook or Personal Macro Workbook? Learn Now!
Close All Workbooks Using Macros | MyExcelOnline
Close All Workbooks Using Macros | MyExcelOnline
How to Enable Macros in Excel Without Risks
How to Enable Macros in Excel Without Risks

While Access provides a wide range of built-in macro actions, there may be times when you need to perform a task that's not covered by these actions. In such cases, you can create custom macro actions using VBA (Visual Basic for Applications). VBA allows you to create your own actions, which can then be used in your macros just like any other action.

To create a custom macro action, you'll need to open the VBA editor by pressing 'Alt + F11'. From there, you can create a new module and write your VBA code. Once you've written your code, you can save it as a macro action by clicking on 'Macro' in the 'Create' tab of the Ribbon and selecting 'Macro Builder'. In the Macro Builder, you can add your custom action and give it a name.

Using Custom Macro Actions

Once you've created a custom macro action, you can use it in your macros just like any other action. For example, let's say you've created a custom action called 'SendEmail' that sends an email using the Outlook object model. You can use this action in a macro to send an email whenever a new record is added to the 'Customers' table:

  • AppendOnly 'Customers', 'Form', 'CustomerID' = 'New', 'CustomerName' = 'John Doe', 'ContactName' = 'Jane Doe'
  • RunCalculation 'Customers', 'Form', 'CustomerID'
  • SendEmail 'john.doe@example.com', 'Subject', 'Body'

In conclusion, macro actions are a powerful tool in Access that allow you to automate repetitive tasks and extend the functionality of the software. By understanding the available actions and learning how to combine them, you can create macros that streamline your workflow and make your Access database more efficient. Whether you're a seasoned Access user or just starting out, taking the time to learn about macro actions can pay dividends in the long run. So why not start exploring the world of macro actions today and see what you can create?