0% found this document useful (0 votes)
19 views2 pages

Relationship Tables in Microsoft Access

This document provides a step-by-step guide for creating relationship tables in Microsoft Access, including how to open the database, access the Relationships window, add tables, create and configure relationships, and save them. It outlines different types of relationships such as one-to-one, one-to-many, and many-to-many, and includes a class activity section with questions related to the topic. The instructions emphasize the importance of referential integrity and managing relationships effectively.

Uploaded by

Katlego Molefe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views2 pages

Relationship Tables in Microsoft Access

This document provides a step-by-step guide for creating relationship tables in Microsoft Access, including how to open the database, access the Relationships window, add tables, create and configure relationships, and save them. It outlines different types of relationships such as one-to-one, one-to-many, and many-to-many, and includes a class activity section with questions related to the topic. The instructions emphasize the importance of referential integrity and managing relationships effectively.

Uploaded by

Katlego Molefe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

To create relationship tables in Microsoft Access, follow these steps:

1. Open Your Database

• Open the Microsoft Access database where you want to create relationships between
tables.

2. Go to the Relationships Window

• Click on the Database Tools tab in the Ribbon.

• Select Relationships from the Relationships group. This opens the Relationships
window, where you'll define how the tables interact.

3. Add Tables to the Relationship Window

• In the Relationships window, click the Show Table button (or right-click and select
"Show Table").

• From the list, select the tables you want to relate and click Add. Once added, close the
Show Table dialog box.

4. Create a Relationship

• Click and drag a field from one table to the corresponding field in the related table.

o For example, drag the CustomerID field from the Customers table to the
CustomerID field in the Orders table.

• The Edit Relationships dialog box will appear.

5. Configure the Relationship

• In the Edit Relationships dialog box:

o Ensure the correct fields are shown for the relationship.

o Select the Enforce Referential Integrity checkbox if you want to ensure that
data remains consistent (e.g., you can't have an order without a valid customer).

o You can also enable Cascade Update or Cascade Delete if you want changes in
the parent table to automatically update or delete related records in the child
table.

6. Save the Relationship

• Click Create to establish the relationship.

• Repeat the process for other tables as needed.

7. View and Manage Relationships

• After creating relationships, you'll see lines connecting the related fields. These lines
represent the type of relationship (one-to-many, many-to-many, etc.).

• You can double-click the lines to edit or delete the relationship at any time.

8. Save the Relationships


• After configuring all the relationships, click the Save button in the toolbar to save the
relationships.

Relationship Types:

• One-to-One: One record in Table A corresponds to one record in Table B.

• One-to-Many: One record in Table A can have many related records in Table B (e.g., a
customer can place many orders).

• Many-to-Many: Requires a junction table between the two tables (e.g., students and
classes where many students can attend many classes).

Class activity

1. How do I create a many-to-many relationship in Access?

2. What is referential integrity, and when should I enforce it?

3. How can I modify or delete an existing relationship?

You might also like