IT tutorials
 
Office
 

Microsoft Access 2010 : Creating Data Macros

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Product Key Free : Microsoft Office 2019 – Serial Number
10/22/2011 3:48:35 PM
New to Access 2010 are data macros. They are very powerful, and they take Access macros to a whole new level.

A data macro is a macro that executes in response to data changing within a table. The following are the events that you can respond to:

  • After data is inserted

  • After data is updated

  • After data is deleted

  • Before data is deleted

  • Before data is changed


Respond to Events

Here’s how it works:

1.
Open the table to which you want to add the data macros in Design view.

2.
Click the Create Data Macros drop-down in the Field, Record & Table Events drop-down on the Table Tools Design tab of the Ribbon. The drop-down appears as in Figure 1.

Figure 1. The Create Data Macros drop-down allows you to select the data event you want to respond to.

3.
Select the event you wish to respond to. For the example I have selected After Insert (see Figure 2).



Figure 2. The After Insert event executes after you insert a record into a table.

4.
Open the Action drop-down and select the desired action. In Figure 3, I have selected LookUpRecord. Access prompts for the table in which to look up the record, the condition under which to perform the action, and the action to perform. The completed event appears in Figure 4. It looks up a record in the Users table where the Order ID in the Orders table matches the Order ID of the current record in the Order Details table. It then increments the value of the field NumberOfDetailItems in the Orders table by 1.

Figure 3. The LookUpRecord action looks up a record in another table where the specified condition is true.

Figure 4. This event increments the value of the NumberOfDetailItems field each time that the user enters an Order Detail record.
 
Others
 
- Microsoft Access 2010 : Creating an Embedded Macro
- Microsoft Word 2010 : Using an Access Database to Create Word Documents
- Microsoft Word 2010 : Creating a Presentation with Word Text
- Microsoft Visio 2010 : The ValidationRuleSets collection
- Microsoft PowerPoint 2010 : Showing Multiple Presentations
- Microsoft PowerPoint 2010 : Showing a Presentation with the PowerPoint Viewer & Customizing the PowerPoint Viewer
- Microsoft Excel 2010 : Checking Compatibility & Checking Accessibility
- Microsoft Excel 2010 : Saving a Workbook with Different Formats
- Microsoft Outlook 2010 : Working in the Mail Module (part 3) - Message Reading Windows
- Microsoft Outlook 2010 : Working in the Mail Module (part 2) - Message Composition Windows
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us