Saving Named Data Macros
You've completed creating your first named data macro, but now you need to save it and give it a name. Unlike data macros attached to table events, named data macros require unique names. To save your new named data macro, click the Save button in the Close group on the Design contextual tab, or click the Save button on the Quick Access Toolbar. Access opens the Save As dialog box. Save the named data macro with the name ClearLogsTest.
Each named data macro attached to a table must have a unique name. You are allowed to have named data macros with the same if they are attached to different tables. If you attempt to save a named data macro with the same name as a named data macro attached to the same table, Access displays a warning message. If you click Yes, Access overwrites the existing named data macro with the new logic that you just defined.
In this tutorial:
- Creating Table Data Macros
- Uses of Data Macros
- The Data Macro Design Facility
- Access New Logic Designer
- Working with Before Events
- Grouping Macros
- Using If Blocks to Create Conditional Expressions
- Raising Errors in Data Macros to Cancel Events
- Testing Your Data Macro
- Defining Multiple Actions
- Collapsing and Expanding Actions
- Moving Actions
- Preventing Duplicate Records Across Multiple Fields
- Before Delete
- Working with After Events
- After Update
- After Delete
- Working with Named Data Macros
- Saving Named Data Macros
- Calling Named Data Macros
- Renaming and Deleting Named Data Macros
- Analyzing Errors in the USysApplicationLog Table
- Using Parameters
- Using Local Variables
- Working with Return Variables
- Debugging Data Macros
- Understanding Recursion in Data Macros
- Sharing Data Macro Logic