exploring microsoft access chapter 7 building applications: the switchboard, macros, and prototyping

18
Exploring Microsoft Access Chapter 7 Building Applications: The Switchboard, Macros, and Prototyping

Upload: meghan-park

Post on 20-Jan-2016

227 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Exploring Microsoft Access Chapter 7 Building Applications: The Switchboard, Macros, and Prototyping

Exploring Microsoft Access

Chapter 7

Building Applications:

The Switchboard, Macros, and Prototyping

Page 2: Exploring Microsoft Access Chapter 7 Building Applications: The Switchboard, Macros, and Prototyping

Objectives (1 of 2)

• Use the Switchboard Manager create/modify a switchboard

• Use the Link Tables command

• Describe how macros are used to automate applications

• Describe components of Macro window

Page 3: Exploring Microsoft Access Chapter 7 Building Applications: The Switchboard, Macros, and Prototyping

Objectives (2 of 2)

• Explain how prototyping facilitates application development

• Use the Unmatched Query Wizard

• Create a macro group

Page 4: Exploring Microsoft Access Chapter 7 Building Applications: The Switchboard, Macros, and Prototyping

Overview (1 of 2)• Develop a database user interface (aka

switchboard) that ties objects in a database together to simplify the use of the database

• Understand and create an application

• Split a database file into two files: tables and other objects

Page 5: Exploring Microsoft Access Chapter 7 Building Applications: The Switchboard, Macros, and Prototyping

Overview (2 of 2)

• Link the two database files using the Link Tables command

• Macros automate common commands

• Prototype to demonstrate “look and feel” to potential users

Page 6: Exploring Microsoft Access Chapter 7 Building Applications: The Switchboard, Macros, and Prototyping

Switchboard Manager• Creates a switchboard automatically

• Prompts developer for information about each menu item

• Access creates a switchboard form that is displayed to the user

• Switchboard Items table stores information about each command

Page 7: Exploring Microsoft Access Chapter 7 Building Applications: The Switchboard, Macros, and Prototyping

Switchboard Design ViewRecord Source for switchboard is Switchboard Items table

Switchboard can have 8menu items

Page 8: Exploring Microsoft Access Chapter 7 Building Applications: The Switchboard, Macros, and Prototyping

Main Menu

Teams button opens the Teams form

About Sports button displays an informational box

Page 9: Exploring Microsoft Access Chapter 7 Building Applications: The Switchboard, Macros, and Prototyping

Switchboard ItemsSwitchboardID identifieswhich switchboard each item belongs to

ItemNumber identifiesposition of item on switchboard

ItemText specifiestext shown on Switchboard

Command determinesaction taken when theitem is selected

Argument determinesobject to be acted on(form to be opened)

Page 10: Exploring Microsoft Access Chapter 7 Building Applications: The Switchboard, Macros, and Prototyping

Linked Tables Manager (1 of 2)

• Every application consists of tables and objects (forms, queries, reports) based on those tables

• Tables and objects can be stored in separate files

• Linked Table Manager associates the tables file with the objects file

Page 11: Exploring Microsoft Access Chapter 7 Building Applications: The Switchboard, Macros, and Prototyping

Linked Tables Manager (2 of 2)

Open database is Sports Objects

Arrow indicates tables are linked

Page 12: Exploring Microsoft Access Chapter 7 Building Applications: The Switchboard, Macros, and Prototyping

Introduction to Macros (1 of 2)

• Macros automate a command sequence

• Macro window is divided into two sections: actions (commands that comprise the macro) and arguments (information for those actions)

Page 13: Exploring Microsoft Access Chapter 7 Building Applications: The Switchboard, Macros, and Prototyping

Introduction to Macros (2 of 2)• Macros are stored as separate objects in

a database

• Macro toolbar appears at the top of the macro window

• AutoExec macro is run whenever database is opened

• Debugging provides error messages

Page 14: Exploring Microsoft Access Chapter 7 Building Applications: The Switchboard, Macros, and Prototyping

Back Up Macro

MsgBox action

Message box text

Message box displayedby macro

Page 15: Exploring Microsoft Access Chapter 7 Building Applications: The Switchboard, Macros, and Prototyping

Using Macro Groups

• Macros are grouped to organize the macros for the developer

• Individual macros within a group must be identified by name and group name(e.g. “MacroGroupName.MacroName”)

Page 16: Exploring Microsoft Access Chapter 7 Building Applications: The Switchboard, Macros, and Prototyping

Prototyping

• Iterative process that presents the client with multiple partially completed versions of the application

• Helps organize and outline what should be in the database

• Does not contain much real information

Page 17: Exploring Microsoft Access Chapter 7 Building Applications: The Switchboard, Macros, and Prototyping

Chapter 7 Summary (1 of 2)• Switchboard makes a database user

friendly

• Splitting tables from objects simplifies upgrades

• Macros automate a command sequence

Page 18: Exploring Microsoft Access Chapter 7 Building Applications: The Switchboard, Macros, and Prototyping

Chapter 7 Summary (2 of 2)• AutoExec macro executes when database

opens

• Unmatched Query Wizard finds records in one table without matching records in another table

• Prototype demonstrates “look and feel” of the application before it is completed