IT tutorials
 
Office
 

Microsoft Access 2010 : Creating an Embedded Macro

- 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:46:08 PM
Creating an embedded macro is similar to creating a standard macro. The main difference is that the macro is embedded in the object with which it is associated and does not appear in the list of macros in the Navigation Pane. Here’s how to create an embedded macro:

1.
In Design view, click to select the object to which you want to associate the macro (for example, a command button).

2.
Open the Property Sheet, as shown in Figure 1.

Figure 1. Use the Property Sheet to associate a macro with the event of an object.

3.
Click the Event tab of the Property Sheet.

4.
Click within the event to which you want to associate the embedded macro. In Figure 1 the On Click event is selected.

5.
Click the build button (the ellipse). The Choose Builder dialog box appears (see Figure 2).

Figure 2. The Choose Builder dialog box enables you to specify that you want to build a macro.


6.
Select Macro Builder and click OK. A Macro Design window appears, as shown in Figure 3. Notice in Figure 10.16 that the Macro tab is labeled cmdSayHello: On Click, indicating that the macro is associated with the On Click event of cmdSayHello.

Figure 3. The macro that you create is associated with the appropriate event of the designated object.

7.
Enter the macro commands as you would for any macro, as shown in Figure 4.

Figure 4. Your macro commands appear just like macros that are not embedded.

8.
Close the Macro Design window. Access prompts you to save changes to the macro and update the property, as in Figure 5.

Figure 5. If you save your changes, Access embeds the macro in the object.


9.
Click Yes to save your changes and close the dialog box. You have now created the embedded macro.

One advantage of embedded macros is that if you copy the object containing the embedded macro, the macro copies with the object. For example, if you copy a command button from one form to another, the entire embedded macro will be associated with the command button on the second form. If you then change one of the embedded macros, it does not affect the other one.

 
Others
 
- 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
- Microsoft Outlook 2010 : Working in the Mail Module (part 1)
 
 
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