Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
88 views

Access Tutorial 2 Building A Database and Defining Table Relationships

This document discusses how to build an Access database, including creating tables in design view, defining fields, specifying primary keys, importing data from Excel, and defining relationships between tables. Key steps include typing field names and properties in design view, selecting the primary key, dragging and dropping fields, importing data using a wizard, and illustrating relationships between tables in the relationships window to maintain referential integrity.

Uploaded by

Desire Maharjan
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
88 views

Access Tutorial 2 Building A Database and Defining Table Relationships

This document discusses how to build an Access database, including creating tables in design view, defining fields, specifying primary keys, importing data from Excel, and defining relationships between tables. Key steps include typing field names and properties in design view, selecting the primary key, dragging and dropping fields, importing data using a wizard, and illustrating relationships between tables in the relationships window to maintain referential integrity.

Uploaded by

Desire Maharjan
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 14

Access Tutorial 2

Building a Database
and Defining Table
Relationships

COMPREHENSIVE
Creating a Table in Design View

New Perspectives on Microsoft Office Access 2007 2


Defining a Field in Design View
• In the Field Name box, type the name for the
field, and then press the Tab key
• Accept the default Text data type, or click the
arrow and select a different data type for the
field. Press the Tab key
• Enter an optional description for the field, if
necessary
• Use the Field Properties pane to type or select
other field properties, as appropriate
New Perspectives on Microsoft Office Access 2007 3
Defining a Field in Design View

New Perspectives on Microsoft Office Access 2007 4


Specifying the Primary Key
in Design View
• In the Table window in Design view, click in the
row for the field you’ve chosen to be the primary
key.
• In the Tools group on the Table Tools Design tab,
click the Primary Key button

New Perspectives on Microsoft Office Access 2007 5


Moving a Field
• To move a field, you use the mouse to drag it to
a new location in the Table window in Design
view

New Perspectives on Microsoft Office Access 2007 6


Adding a Field
Between Two Existing Fields
• In the Table window in Design view, select the
row for the field above which you want to add a
new field
• In the Tools group on the Table Tools Design tab,
click the Insert Rows button
• Define the new field by entering the field name,
data type, optional description, and any property
specifications

New Perspectives on Microsoft Office Access 2007 7


Importing Data from an Excel
Worksheet
• The import process allows you to copy the data
from a source without having to open the source
file – such as an Excel Worksheet
• Click External Data on the Ribbon
• Click the Excel button in the Import group to
start the wizard
• You can also import another Access DB table or a
plain Text File.

New Perspectives on Microsoft Office Access 2007 8


Importing Data from an Excel
Worksheet

New Perspectives on Microsoft Office Access 2007 9


Defining Table Relationships
• A one-to-many relationship exists between two
tables when one record in the first table matches
one or many records in the second table.

– The Primary table is the “one” in a one-to-many


relationship
– The Related table is the “many” table

New Perspectives on Microsoft Office Access 2007 10


Defining 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 Show/Hide group on the Database Tools
tab, click the Relationships button
New Perspectives on Microsoft Office Access 2007 11
Defining Table Relationships

New Perspectives on Microsoft Office Access 2007 12


Defining Table Relationships
Example

New Perspectives on Microsoft Office Access 2007 13


Defining Table Relationships

New Perspectives on Microsoft Office Access 2007 14

You might also like