25
Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards

Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards

Embed Size (px)

Citation preview

Page 1: Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards

Exploring MicrosoftAccess 2003

Chapter 2

Tables and Forms: Design,

Properties, Views, and Wizards

Page 2: Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards

Objectives (1 of 2)

• Describe table design• Describe data types and

properties;Set a primary key

• Use Table Wizard; add and delete fields

• Discuss data validation

Page 3: Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards

Objectives (2 of 2)

• Use Form Wizard• Distinguish between bound,

unbound, and calculated controls• Modify an existing form• Switch between Form view, Design

view, & Datasheet view

Page 4: Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards

Overview

• Basic principles of table and formdesign

• Design guidelines• Implement design in Access• Use Table Wizard or design view• Use Form Wizard or design view

Page 5: Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards

Table Design Basics

• Include necessary data

• Store data in smallest parts

• Do not use calculated fields

Page 6: Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards

Creating a Table

• Using Table Wizard• Designing a table yourself• Field names• Data types and properties• Primary key• Views--Datasheet or Design

Page 7: Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards

Data Types

• Number field

• Text field

• Memo field

• Date/Time field

• Currency field

•Yes/No field

•OLE field

•AutoNumber

•Hyperlink field

Page 8: Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards

New Table Screen

Page 9: Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards

Table Wizard Screen

Page 10: Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards

Table Design View

Primary key

Field names

Data type

description

Field property

Page 11: Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards

Creating a Table

• Hands-On Exercise 1

• Create New Database• Create Table• Use Table Wizard• Add Additional Fields• Add an Input Mask• Change Field Properties

• Change Primary Key• Add Validation Rule• The Datasheet View• Enter Additional Data• Print Students Table

Page 12: Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards

Properties (1 of 2)

• Field size

• Format

• Input Mask

• Caption

• Default Value

Page 13: Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards

Properties (2 of 2)

• Validation Rule

• Validation Text

• Required

• Allow Zero Length

• Indexed

Page 14: Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards

Creating a Form

• Controls--objects• Bound control has data source• Unbound control: no data source• Calculated control: expression as data

source• Properties• Form Wizard

Page 15: Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards

Creating a Form

Hands-On Exercise 2

• Open Existing Database

• Form Wizard• Move Controls• Add Calculated

Control• Modify Property Sheet

• Create Form Header

• Add Date• Form View

• Align the Controls

Page 16: Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards

Form Design View

Sizing handles

Click and drag tomove Toolbox

Page 17: Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards

Form View

Current Record Total Number of Records

Page 18: Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards

A More Sophisticated Form

Hands-On Exercise 3• Modify the table• The Lookup Wizard• Add the New Control• Create an Option Group• Add a Command Button• Create Additional Button

Page 19: Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards

A More Sophisticated Form

Hands-On Exercise 3 continued• Align Buttons• Reset Tab Order• The page Setup Command• The Completed Form• Exit Access

Page 20: Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards

Form View

Drop Down List

Command buttons

Check box Option group

Page 21: Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards

Chapter 2 Summary

• Information depends onunderlying data

• Database design is critical

• Table Wizard: creates tableseasily

Page 22: Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards

Chapter 2 Summary Continued

• Form provides easy way to enter anddisplay data

• Form consists of objects calledControls

• Property is a characteristic orattribute of an object

Page 23: Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards

Practice with Access

1. Student Form

2. Insert Graphic

3. Employee Database

4. USA Database

Page 24: Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards

Practice with Access Continued

5. Create an Address book

6. National Basketball Association

7. Help for Your Users

8. Add a Hyperlink

Page 25: Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards

Case Studies

• Personnel Management

• The Stockbroker

• Metro Zoo

• Form Design

• File Compression

• Copyright Infringement

• The Digital Camera