Top Banner
® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships
21

® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.

Dec 31, 2015

Download

Documents

Delphia Chapman
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: ® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.

®

Microsoft Office 2010

Access Tutorial 2

Building a Database and Defining Table Relationships

Page 2: ® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.

XPXPXPWhat You Will Do In Tutorial 2• Learn the guidelines for designing databases

and setting field properties• Modify the format of a field in Datasheet view• Create a table in Design view• Define fields and specify a table’s primary key• Modify the structure of a table

2

Page 3: ® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.

XPXPXPWhat You Will Do In Tutorial 2• Import data from an Excel worksheet• Create a table by importing an existing table

structure• Add fields to a table with the Data Type gallery• Delete, rename, and move fields• Add data to a table by importing a text file• Define a relationship between two tables

3

Page 4: ® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.

XPXPXPTable Window in Design View

4

Page 5: ® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.

XPXPXPGuidelines for Setting Field Properties• The Field Size property defines a field value’s

maximum storage size for Text, Number, and AutoNumber fields only–Byte– Integer– Long Integer– Single–Double–Replication ID–Decimal

5

Page 6: ® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.

XPXPXPChanging the Format of a Field in Datasheet View

6

Page 7: ® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.

XPXPXPCreating a Table in Design View• Creating a table in Design view involves

entering the field names and defining the properties for the fields, specifying the primary key, and saving the table structure

7

Page 8: ® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.

XPXPXPDefining a Field in Design View

8

Page 9: ® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.

XPXPXPSpecifying the Primary Key in Design View

9

Page 10: ® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.

XPXPXPMoving a Field• To move a field, you use the mouse to drag it

to a new location in the Table window in the Table Design grid

10

Page 11: ® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.

XPXPXPAdding a Field Between Two Existing Fields

11

Page 12: ® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.

XPXPXPTable Relationship

12

Page 13: ® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.

XPXPXPImporting Data from an Excel Worksheet

13

Page 14: ® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.

XPXPXPCreating a Table by Importingan Existing Table Structure

14

Page 15: ® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.

XPXPXPDefining Table Relationships• One of the most powerful features of a

relational database management system is its ability to define relationships between tables

• You use a common field to relate one table to another

15

Page 16: ® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.

XPXPXPDefining Table Relationships

16

Page 17: ® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.

XPXPXPDefining Table Relationships• A one-to-many relationship exists between

two tables when one record in the first table matches zero, one, or many records in the second table, and when one record in the second table matches at most one record in the first table– The Primary table is the “one” in a one-to-

many relationship– The Related table is the “many” table

17

Page 18: ® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.

XPXPXPDefining Table Relationships• Referential integrity is a set of rules that

Access enforces to maintain consistency between related tables when you update data in a database

• The Relationships window illustrates the relationships among a database’s tables

• Click the Database Tools tab on the Ribbon• In the Relationships group on the Database

Tools tab, click the Relationships button

18

Page 19: ® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.

XPXPXPDefining Table Relationships

19

Page 20: ® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.

XPXPXPDefining Table Relationships

20

Page 21: ® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.

XPXPXPDefining Table Relationships

21