To complete this database, you will need the following file:

Similar documents
To complete this database, you will need the following file:

To complete this database, you will need the following file:

More Skills 11 Export Queries to Other File Formats

More Skills 12 Create Indexes and Establish a One-to-One Relationship. To complete this database, you will need the following file:

To complete this project, you will need the following folder:

More Skills 14 Write Macros to Create Custom Menus

To complete this database, you will need the following file:

Working with Macros. Creating a Macro

To complete this database, you will need the following file:

Microsoft Access 2013

More Skills 11 Format and Position Report Controls

More Skills 11 Capture a Screen with the Snipping Tool

Microsoft Access 2010

Creating a Crosstab Query in Design View

To complete this activity, you will need the following files:

More Skills 14 Use a Query to Find Unmatched Data. To complete this database, you will need the following file:

SOFTWARE SKILLS BUILDERS

Using Macros and SQL in Access Instructor: Aarthi Natarajan

More Skills 14 View Pictures from Digital Cameras. To complete this project, you will need the following folder:

Excel. More Skills 11 Insert and Edit Comments. To complete this workbook, you will need the following file: You will save your workbook as: CHAPTER 2

Microsoft Access 2010

Windows 7. More Skills 11 Manage Fonts. To complete this project, you will need the following file: You will save your file as: CHAPTER 7

Microsoft Access 2002 for Windows

Microsoft Access 2013

To complete this workbook, you will need the following file:

Microsoft Access 2013

USING MICROSOFT ACCESS 2013 Guided Project 7-1

Navigating a Database Efficiently

User Group Configuration

More Skills 12 Create Web Queries and Clear Hyperlinks

Access Review. 4. Save the table by clicking the Save icon in the Quick Access Toolbar or by pulling

Microsoft Office 2010: Introductory Q&As Access Chapter 2

Join Queries in Cognos Analytics Reporting

Complete Quick Reference Summary

Section 1 Creating Mail Merge Files

Cooperative Extension Service 4HPlus! Computer Tip

Excel 2010 Charts - Intermediate Excel 2010 Series The University of Akron. Table of Contents COURSE OVERVIEW... 2

Insert Subtotals in Excel and Link Data to a Word Document

1. Right-click the worksheet tab you want to rename. The worksheet menu appears. 2. Select Rename.

AVANTUS TRAINING PTE LTD

Microsoft Office 2010: Introductory Q&As Access Chapter 3

Links to Activities ACTIVITY 3.1. Links to Activities ACTIVITY 3.

Discovering Computers & Microsoft Office Office 2010 and Windows 7: Essential Concepts and Skills

Enforce Referential. dialog box, click to mark the. Enforce Referential. Integrity, Cascade Update Related Fields, and. Cascade Delete Related

SOFTWARE SKILLS BUILDERS

Microsoft Access 2003 Quick Tutorial

Chancellor s Office Information Technology Services Corporate Information Management FIRMS Budget Review Hyperion Process

Using Reports. Access 2013 Unit D. Property of Cengage Learning. Unit Objectives. Files You Will Need

Creating Automated Dashboard Excel 2013 Contents

Links to Activities ACTIVITY 4.1. Links to Activities Links to Activities

Open Excel by following the directions listed below: Click on Start, select Programs, and the click on Microsoft Excel.

Microsoft How to Series

Intermediate Microsoft Access 2010

Softkey Template Setup

Table of Contents COURSE OVERVIEW... 5

PowerPoint Slide Basics. Introduction

Creating a Dashboard Prompt

To complete this workbook, you will need the following file:

Switchboard. Creating and Running a Navigation Form

Division of School Facilities

Some useful shortcut keys applicable for both Excel and Word (16 to 19 is only for Excel): Sr.No. Shortcut Keys Description

MIS Cases: Decision Making With Application Software, Second Edition. Database Glossary

epact2 Quick start guide

Englische Access 2016-Trainingsskripte für IT Seminare und EDV Schulungen als Word-Dokument zum Ausdrucken und fürs Intranet

Shopping Cart: Queries, Personalizations, Filters, and Settings

Candy is Dandy Project (Project #12)

Introduction. Inserting and Modifying Tables. Word 2010 Working with Tables. To Insert a Blank Table: Page 1

Dreamweaver 8. Project 5. Templates and Style Sheets

Access 2013 Introduction to Forms and Reports

Chapter11 practice file folder. For more information, see Download the practice files in this book s Introduction.

Administering a Database System

Database Design Lab: MS Access Queries

Creating an Animated Sea Aquarium/Getting Acquainted with Power Point

Links to Activities ACTIVITY 1.1. Links to Activities Links to Activities

ADPRO FastTrace 2 USER GUIDE. Provided By:

TIP SHEET FOR MS PROJECT

More Skills 11 Draw Tables and Convert Tables to Text. To complete this document, you will need the following file:

Oracle Business Intelligence Icon Definitions

Microsoft Access II 1.) Opening a Saved Database Music Click the Options Enable this Content Click OK. *

When you pass Exam : Access 2010, you complete the requirements for the Microsoft Office Specialist (MOS) - Access 2010 certification.

Excel Select a template category in the Office.com Templates section. 5. Click the Download button.

Submitting Assignments

Introduction to Excel 2013 Part 2

Section 1: Introduction to Arc GIS 10

COMSC-031 Web Site Development- Part 2. Part-Time Instructor: Joenil Mistal

Status Bar: Right click on the Status Bar to add or remove features.

Using Dreamweaver. 4 Creating a Template. Logo. Page Heading. Home About Us Gallery Ordering Contact Us Links. Page content in this area

PM4 + Partners Knowledge Articles

What s New in Access 2007

Creating and Using a Database in Access 2007

Using Microsoft Word. Text Editing

Use signatures in Outlook 2010

Lesson 3 Formatting Paragraphs

AVANTUS TRAINING PTE LTD

SAMPLE. Access 2010 Foundation. Access 2010 Foundation. Access 2010 Foundation Page 1

eschoolplus+ General Information Training Guide Version 2.4

Excel 2007 New Features Table of Contents

Introduction to HCM DataMart

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

SECTION 4 USING QUERIES. What will I learn in this section?

Transcription:

= CHAPTER 3 Access More Skills 14 Create Macros A macro is a set of saved actions that you can use to automate tasks. For example, a macro can open several database objects with a single click, or display a message whenever a form or report is opened. Macros are created in the Macro Builder an object tab with prebuilt commands that you can select and modify to build a macro. To complete this database, you will need the following file: a03_results You will save your files as: Lastname_Firstname_a03_Results Lastname_Firstname_a03_Results_Snip1 Lastname_Firstname_a03_Results_Snip2 1. Start Access. Locate and open the file a03_results. Save the file in your Access Chapter 3 folder as Lastname_Firstname_a03_Results If the security message displays, enable the content. 2. On the Create tab, in the Macros & Code group, click the Macro button to display the Macro Builder and the Macro Tools Design tab. Compare your screen with Figure 1. Macro Tools Design tab Macro builder The Macro Builder displays an area for adding actions and the Action Catalog lists common macro actions prebuilt sets of instructions that perform tasks when the macro is run. Action Catalog Figure 1 Create Forms Microsoft Access Chapter 3 More Skills: SKILL 14 Page 1 of 8

3. In the Action Catalog, under Actions, expand Filter/Query/Search, and then doubleclick OpenQuery. Compare your screen with Figure 2. When you add an action to the Macro Builder, the action displays in a box with its action arguments additional instructions that determine how the macro action should run. The OpenQuery action has three arguments: Query Name, View, and Data Mode. OpenQuery action Action arguments Filter/Query/Search actions 4. In the OpenQuery action, click the Query Name arrow, and then, from the list, click Stage Results. Figure 2 Create Forms Microsoft Access Chapter 3 More Skills: SKILL 14 Page 2 of 8

5. In the OpenQuery action, click the View arrow, and then click Design. Compare your screen with Figure 3. The action arguments specify that the Stage Results query should open in Design view when the macro is run. Action arguments changed Figure 3 6. Click Save. In the Save As dialog box, type Open Stage Results Query and then click OK. In the Navigation Pane, notice that the saved macro displays in the Macros group. 7. On the Design tab, in the Tools group, click the Run button. In the Stage Results query, notice that the year criterion specifies the year 2011. Scroll to the right, and notice that the Bracket criteria limit the results to the male and female professional brackets. 8. In the Results group, click the Run button. In the first record, change the names Earnest and Wallaert to your own first and last name, and then Close the query. 9. With the Macro Builder displayed, Start the Snipping Tool, click the New button arrow, and then click Full-screen Snip. Save the snip your Access Chapter 3 folder as Lastname_Firstname_a03_Results_Snip1 and then Close the Snipping Tool mark-up window. 10. Close the Macro Builder. In the Navigation Pane, under Reports, double-click Stage Results to display the results of the Stage Results query in the report. 11. Switch to Layout view. In the Controls group, click the Button (Form Control) button. Create Forms Microsoft Access Chapter 3 More Skills: SKILL 14 Page 3 of 8

12. Position the pointer in the blank column to the right of the report. When the orange line displays, as shown in Figure 4, click the mouse button to insert the button into the layout s summary row. Button will be inserted into summary row Figure 4 13. With the orange selection border still around the button, click the button one time to enter Text Editing mode. Select the existing text, and then type Open Query 14. With the button still in Text Edit mode, on the Design tab, in the Tools group, click the Property Sheet button. Create Forms Microsoft Access Chapter 3 More Skills: SKILL 14 Page 4 of 8

15. Click the property sheet Event tab. Click the On Click arrow, and then click Open Stage Results Query. Compare your screen with Figure 5. The Open Stage Results Query macro will run whenever the button is clicked. On Click property changed Figure 5 16. Close the property sheet, click Save, and then switch to Report view. 17. In the report, click the Open Query button. In the query, in the Year column Criteria box, change the year to 2012 Save, and then Close the query. 18. Close the Stage Results report, and then open the report in Report view to display the results for 2012. Create Forms Microsoft Access Chapter 3 More Skills: SKILL 14 Page 5 of 8

19. Switch to Layout view. On the Design tab, in the Tools group, click the Property Sheet button. Click the Selection type arrow, and then click Report to display the report properties. Compare your screen with Figure 6. Report selected Figure 6 20. In the property sheet, click the On Load box, and then click the displayed Build button. In the Choose Builder dialog box, be sure that Macro Builder is selected, and then click OK. 21. In the Stage Results : Report : On Load object tab, click the Add New Action arrow, and then, from the list, click Beep. The Beep action has no arguments. 22. Below the Beep action just inserted, click the Add New Action arrow, and then, from the list, click MessageBox to insert the MessageBox action. The MessageBox action has four action arguments: Message, Beep, Type, and Title. 23. If necessary, in the Message Box action, click in the Message box. Type If you need to update the Stage Results query, click the Open Query button, and then reopen this report. 24. Click the Type arrow, and then from the list, click Warning?. Create Forms Microsoft Access Chapter 3 More Skills: SKILL 14 Page 6 of 8

25. In the Title box, type Does the query need to be updated? Compare your screen with Figure 7. Beep and MessageBox actions added MessageBox action arguments changed Figure 7 26. Click the Add New Action arrow, and then click Beep. 27. Click Save, and then compare your screen with Figure 8. Three macro actions Figure 8 Create Forms Microsoft Access Chapter 3 More Skills: SKILL 14 Page 7 of 8

28. Start the Snipping Tool, click the New button arrow, and then click Full-screen Snip. Save the snip in your Access Chapter 3 folder as Lastname_Firstname_a03_Results_Snip2 and then Close the Snipping Tool mark-up window. 29. In the Close group, click the Close button. In the report, Close the property sheet, and then click Save. Unlike the macro created previously, this macro will not display in the Navigation Pane when you save it. This macro is saved as part of the report and cannot be used in other forms or reports. 30. Close, and then reopen the report. Compare your screen with Figure 9. The MessageBox arguments that you define in the Macro Builder display in a message box. Here, the title bar, icon, and message are defined by the action arguments. Title Message box Warning? icon Message 31. Read the message displayed by the macro, and then click OK. Figure 9 32. In the report, click the Open Query button that you inserted. In the query, change the Year column Criteria box to 2011 Save and then Close the query. 33. Close, and then reopen the report. In the message that appears, click OK. If your instructor asks you to print this project, print the report. 34. Close the report, and then Exit Access. 35. Print the snips or submit the files as directed by your instructor. You have completed More Skills 14 Create Forms Microsoft Access Chapter 3 More Skills: SKILL 14 Page 8 of 8