View
221
Download
0
Category
Tags:
Preview:
Citation preview
Exploring MicrosoftAccess 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
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
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
Table Design Basics
• Include necessary data
• Store data in smallest parts
• Do not use calculated fields
Creating a Table
• Using Table Wizard• Designing a table yourself• Field names• Data types and properties• Primary key• Views--Datasheet or Design
Data Types
• Number field
• Text field
• Memo field
• Date/Time field
• Currency field
•Yes/No field
•OLE field
•AutoNumber
•Hyperlink field
New Table Screen
Table Wizard Screen
Table Design View
Primary key
Field names
Data type
description
Field property
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
Properties (1 of 2)
• Field size
• Format
• Input Mask
• Caption
• Default Value
Properties (2 of 2)
• Validation Rule
• Validation Text
• Required
• Allow Zero Length
• Indexed
Creating a Form
• Controls--objects• Bound control has data source• Unbound control: no data source• Calculated control: expression as data
source• Properties• Form Wizard
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
Form Design View
Sizing handles
Click and drag tomove Toolbox
Form View
Current Record Total Number of Records
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
A More Sophisticated Form
Hands-On Exercise 3 continued• Align Buttons• Reset Tab Order• The page Setup Command• The Completed Form• Exit Access
Form View
Drop Down List
Command buttons
Check box Option group
Chapter 2 Summary
• Information depends onunderlying data
• Database design is critical
• Table Wizard: creates tableseasily
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
Practice with Access
1. Student Form
2. Insert Graphic
3. Employee Database
4. USA Database
Practice with Access Continued
5. Create an Address book
6. National Basketball Association
7. Help for Your Users
8. Add a Hyperlink
Case Studies
• Personnel Management
• The Stockbroker
• Metro Zoo
• Form Design
• File Compression
• Copyright Infringement
• The Digital Camera
Recommended