1 Microsoft Access 2002 Tutorial 9 – Automating Tasks With Macros.

Slides:



Advertisements
Similar presentations
INTRODUCTORY MICROSOFT ACCESS Lesson 1 – Access Basics
Advertisements

MS Access 2003 Tutorial By: Juan GUANTENG!!! Y7. Step 1 Launch the Microsoft Access 2003 program. This can be done by clicking an icon on the desktop.
Tutorial 8: Developing an Excel Application
XP New Perspectives on Microsoft Excel 2003, Second Edition- Tutorial 8 1 Microsoft Office Excel 2003 Tutorial 8 – Developing an Excel Application.
© by Pearson Education, Inc. All Rights Reserved.
Exploring Microsoft Access 2003 Chapter 7 Building Applications: The Switchboard, Macros, and Prototyping.
Automating Tasks With Macros
Creating Custom Forms. 2 Design and create a custom form You can create a custom form by modifying an existing form or creating a new form. Either way,
Microsoft Access 2003 Introduction To Microsoft Access 2003.
Customizing Word Microsoft Office Word 2007 Illustrated Complete.
Access Tutorial 1 Creating a Database
Automating Tasks With Macros. 2 Design a switchboard and dialog box for a graphical user interface Database developers interact directly with Access.
With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 1 1 Microsoft Access 2003 Tutorial 1 – Introduction To Microsoft Access 2003.
1 Computing for Todays Lecture 16 Yumei Huo Fall 2006.
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Create Forms Lesson 5. Software Orientation Creating Forms A form is a database object –enter, edit, or display data from a table or query Providing.
Access Tutorial 10 Automating Tasks with Macros
Chapter 9 Macros, Navigation Forms, PivotTables, and PivotCharts
1 Microsoft Access 2002 Tutorial 5 – Enhancing a Table’s Design, and Creating Advanced Queries and Custom Forms.
XP New Perspectives on Microsoft Access 2002 Tutorial 41 Microsoft Access 2002 Tutorial 4 – Creating Forms and Reports.
Tutorial 6 Using Form Tools and Creating Custom Forms
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 1 – Access Basics.
XP New Perspectives on Microsoft Access 2002 Tutorial 51 Microsoft Access 2002 Tutorial 5 – Enhancing a Table’s Design, and Creating Advanced Queries and.
1 CA201 Word Application Increasing Efficiency Week # 13 By Tariq Ibn Aziz Dammam Community college.
IE 411/511: Visual Programming for Industrial Applications
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
McGraw-Hill/Irwin ©2009 The McGraw-Hill Companies, All Rights Reserved Business Driven Information Systems 2e Plug-In T6: Basic Skills and Tools Using.
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
Microsoft Office 2007 Access Chapter 6 Using Macros, Switchboards, PivotTables, and PivotCharts.
S511 Session 7, IU-SLIS 1 DB Implementation: MS Access Forms.
XP 1 Microsoft Access 2003 Introduction To Microsoft Access 2003.
FIRST COURSE Access Tutorial 4 Creating Forms and Reports.
Create Forms Lesson 5. Objectives Software Orientation The Forms group (below) is located on the Create tab in the Ribbon and can be used to create a.
Automating Database Processing
Key Applications Module Lesson 21 — Access Essentials
XP New Perspectives on Microsoft Access 2002 Tutorial 1 1 Microsoft Access 2002 Tutorial 1 – Introduction To Microsoft Access 2002.
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T6: Basic Skills and Tools Using Access 2010 Business Driven Technology.
1 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 8 DATABASE DESIGN AND DEVELOPMENT: A VISUAL APPROACH Chapter 8 Creating.
Creating Graphical User Interfaces (GUI’s) with MATLAB By Jeffrey A. Webb OSU Gateway Coalition Member.
MS Access: Introduction 1Database Design. MS Access: Overview MS Access A Database Management System (DBMS) designed to create applications that organize,
Microsoft Access 2013 ®® Tutorial 10 Automating Tasks with Macros.
® Microsoft Access 2010 Tutorial 10 Automating Tasks with Macros.
Access Lesson 11 Creating and Running Macros Microsoft Office 2010 Advanced Cable / Morrison 1.
Exploring Microsoft Access Chapter 7 Building Applications: The Switchboard, Macros, and Prototyping.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 10 1 Microsoft Office Access 2003 Tutorial 10 – Automating Tasks With Macros.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
XP New Perspectives on Microsoft Access 2002 Tutorial 31 Microsoft Access 2002 Tutorial 3 – Querying a Database.
Lesson 4.  After a table has been created, you may need to modify it. You can make many changes to a table—or other database object—using its property.
An Introduction to Forms. The Major Steps of a MicroSoft Access Database  Tables  Queries  Forms  Macros  Reports  Modules On our road map, we are.
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
CPSC 203 Introduction to Computers T59 & T64 By Jie (Jeff) Gao.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 5 1 Microsoft Office Access 2003 Tutorial 5 – Enhancing a Table’s Design.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 8 1 Microsoft Office Access 2003 Tutorial 8 – Integrating Access with the.
Microsoft Access Prepared by the Academic Faculty Members of IT.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6 – Creating Custom Forms.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 4 1 Microsoft Office Access 2003 Tutorial 4 – Creating Forms and Reports.
Databases Databases Using Microsoft Access 2003 Microsoft Access 2003 is a powerful, yet easy to learn, relational database application for Microsoft Windows.
Excel Tutorial 8 Developing an Excel Application
Creating Custom Reports, Macros, and Switchboards
Microsoft Office Access 2003
Microsoft Excel 2003 Illustrated Complete
Microsoft Office Access 2003
Creating and Modifying Queries
Microsoft Office Access 2003
Tutorial 3 – Querying a Database
Macro.
New Perspectives on Microsoft
Presentation transcript:

1 Microsoft Access 2002 Tutorial 9 – Automating Tasks With Macros

2 Design a switchboard and dialog box for a graphical user interface Database developers interact directly with Access. Often users should not be given full access to Access  provide an interface that removes the user away from the Access interface. A Graphical User Interface (GUI) is a collection of windows, menus, dialog boxes and other graphical components used to communicate with a program. Often, the first view of a custom GUI is a switchboard.

3 What is a switchboard? A form that opens when you start the underlying database. Usually used to provide the user with a set of choices. Eliminates the need for users to interact directly with the database window. Can prevent users from making bad changes to form layout etc. The form you create for the switchboard is called a dialog box, which asks for user input in the way of a selection.

4 An example of a switchboard Notice that this switchboard provides command buttons to provide access to all the options available to the user. The figure below is an example of a switchboard form. The user would use this form to open the various objects in the database.

5 Macros Small program with a series of actions Actions are repeated whenever macro is invoked. An action is an instruction to Access to perform an operation, such as opening a form or displaying a query. Once the macro has been created, you can add actions to it by editing the macro in the Macro window.

6 Use the Macro window to add actions It is within the Macro window that you will supply the action name (chosen from a list), any comments you want to make, and the arguments for the action. Arguments are additional facts needed to run the action. Each type of action has its own set of arguments. A commonly used action is the Msgbox action, which will display a message to the user by way of a small form. Another commonly used action is the FindRecord action that will find the first record matching a set of criteria.

7 The Macro window This figure shows the Macro Window. In this window you can add macro actions and set the arguments for the macro actions. Notice that each action has a comment column. This column is used to document the macro. It is a good idea to write a comment about how this particular action will be used. Notice also the lower section of the window. This section contains the properties for the currently selected action.

8 Single-Step a macro When you run a macro, the series of actions are executing one after the other. Sometimes it is useful to test the macro one step at a time. This is called single stepping and causes the macro to perform one action, then waits for you to step to the next action. Can gain a clearer view of how the macro is working.

9 Create a macro Start with a blank macro and then add the actions to it. Drag an action from the database windows into the macro window. Each type of object has a default set of arguments.  For example, if you drag a table into the macro window, the default arguments are to open the table in datasheet view in edit mode. Drag as many objects as you want to the macro window. You can either accept the default arguments or you can edit them to meet your needs. Run the macro and observe the results of the macro.

10 Macro Groups A macro group is a macro that contains other macros. If you have several small related macros, you might consider grouping them together with other small macros in a macro group. Makes it easier to maintain a large collection of macros.

11 Add a macro to a macro group Each individual macro within the group will have a name assigned to it.  MacroGroupName.MacroName When you add a macro to a macro group, you add a new name to the Macro Name column. However, if you are simply adding an action to a macro within the group, you add only the new action in the Action column under the macro name.

12 A macro group with two macros In the figure below, you see an example of a Macro group window. Notice the new column added for the Macro name. Each macro in the group will contain a name in this column. Actions that will be taken within that macro will appear in the action column but without a name.

13 Use the Switchboard Manager to create a switchboard First, create all the macros you will need for the switchboard and then create the switchboard that will execute the macros. Use the Switchboard Manager to create the switchboard. The Switchboard Manager allows you to specify what buttons should be on the switchboard and identify the command to execute when each of the buttons is clicked.

14 Switchboard considerations Only one switchboard for a database; however, the switchboard can contain multiple pages. The main page of the switchboard will display when the switchboard opens. You can place buttons on the main page that will cause other pages in the switchboard to open.

15 The completed switchboard This final figure shows the complete switchboard, which has buttons for each of the objects with which the user can interact.