IT tutorials
 
Office
 

Microsoft Access 2010 : Creating a Drillthrough Macro

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Product Key Free : Microsoft Office 2019 – Serial Number
10/28/2011 6:43:04 PM
An exciting technique available with Access 2010 is the ability to easily create a drillthrough macro. With a drillthrough macro, you click an ID on a main form and it takes you to a detail form for the record associated with that ID. Here’s how it works:

1.
Click to select the parent table in the list of tables in the Navigation Pane. For this example, I will select the Orders table.

2.
Select Datasheet from the More Forms drop-down in the Forms group on the Create tab of the Ribbon. Access creates a datasheet form based on the Orders table (as shown in Figure 1).

Figure 1. The datasheet form displays all of the table’s records in a datasheet.


3.
Save the form as frmOrdersDatasheet.

4.
Select the Order ID column on the form. This may require using the Object drop-down in the Property Sheet.

5.
Click the Build button for the On Dbl Click event of the text box. The Choose Builder dialog appears.

6.
Select Macro Builder and click OK. The macro appears as in Figure 2.

Figure 2. The On Dbl Click event executes when the user double-clicks the designated object.


7.
Open the Action drop-down and select If from the list of available actions.

8.
Enter the If action to only execute the action that follows it if the Order ID contains a value (see Figure 3).

Figure 3. The If action allows you to determine when the macro statements that follow it execute.

9.
Select the OpenForm action as the action you want to execute if the condition entered is true.

10.
Fill in the arguments of the OpenForm action to open the Order Details form where the Order ID equals that on the frmOrdersDatasheet form (see Figure 4).



Figure 4. The completed statement opens the Order Details form, displaying the detail items for the selected order.


11.
Save and close the macro.

12.
Double-click the OrderID on the navigation form. The Order Details form should open, displaying data for the selected order.
 
Others
 
- Microsoft Word 2010 : Creating a PDF Document
- Microsoft Word 2010 : Creating a Word Outline from a Presentation & Creating and Opening OneNotes
- Microsoft PowerPoint 2010 : Adding Sound to a Transition & Modifying Transition Speed
- Microsoft PowerPoint 2010 : Adding Transitions and Animations - Applying a Transition
- Microsoft Excel 2010 : Recovering a Workbook
- Microsoft Excel 2010 : Documenting Workbook Properties & Switching Views
- Microsoft Outlook 2010 : Working in the Calendar Module (part 2) - Calendar Item Windows
- Microsoft Outlook 2010 : Working in the Calendar Module (part 1) - Calendar Module Content
- Customizing Microsoft OneNote 2010 : Setting Display Preferences (part 5)
- Customizing Microsoft OneNote 2010 : Setting Display Preferences (part 4)
 
 
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