Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

Relationship Nn: Relationships Between Tables in Access

Explore Relationship Nn: Relationships Between Tables in Access, including the main concepts, relevant details, and practical considerations.

Table of Contents

This updated guide examines Relationship Nn: Relationships Between Tables in Access and organizes the essential facts, background, and practical takeaways in clear American English.

To create such a relationship, define the third table, called a join table, with the primary key including foreign keys from both Table A and Table B to divide the nn relationship into two 1-n relationships..

Continuing with the examples in the previous tutorial, we added a tblTacgia table and a link table tblTacgiaNoi. The Author table includes the schools TacgiaID, Ten, Ho, Diachi, Dienthoai, Email, Ngaysinh.

Relationship Nn: Relationships Between Tables in Access — contextual image 1
Add new table tblag has fields as shown

Often an author will work with many projects, as well as a project that can have many authors working together. As in the previous tutorials, the tblDuAn table also has an author field, so we will create a separate table that includes information about the author. So, we don't need this field in the Project table anymore.

Relationship Nn: Relationships Between Tables in Access — contextual image 2
The tblDuAn table also has a field about Authors

Choose Tacgia school , press the delete button and you will see the following message.

Relationship Nn: Relationships Between Tables in Access — contextual image 3
Delete the TacGia field on this table

Click Yes .

Now we will create a link board. This connector has two foreign keys as follows:

Relationship Nn: Relationships Between Tables in Access — contextual image 4
Add 2 ID fields of the two tables to this join table

These foreign key fields will be primary keys from both tables tblTg and tblDuAn.

To create multiple keys in Access, select both of these fields, go to the Design tab , click Primary Key, the selected fields will become keys.

Relationship Nn: Relationships Between Tables in Access — contextual image 5
The two selected fields all become keys

Save the table with the name tblTacgiaNoi.

Next, go to the Relationship in the Design tab to create a relationship by clicking Show Table.

Relationship Nn: Relationships Between Tables in Access — contextual image 6
Add 3 tblDuAn tables, tblTacgia and tblTacgiaNoi

Select the tblDuAn, tblTacgia and tblTacgiaNoi tables, click Add to add all three tables to the desktop and close the Show Table dialog box .

Relationship Nn: Relationships Between Tables in Access — contextual image 7
All 3 tblDuAn, tblTacgia and tblTacgiaNoi tables are added to the screen

Using the mouse to click and hold the TacgiaID field in tblTacgia table , drag to the TacgiaID field you want to connect to the table tblTacgiaNoi. When you release the mouse, Access opens the Edit Relationships window . Note, the relationship that is creating Access will be considered a 1-n relationship. Click the Cascade Update box and click Create:

Relationship Nn: Relationships Between Tables in Access — contextual image 8
Pulling together two TacgiaID fields of two tables will display the Edit Relationships dialog box

Result:

Relationship Nn: Relationships Between Tables in Access — contextual image 9

Next, drag the DuAnID field from the tblDuAn table to the DuAnID field of the tableTableGoogle, and check the Enforce Referential Integrity box and Cascade Update Related Fields .

Relationship Nn: Relationships Between Tables in Access — contextual image 10
Drag the two DuAnID fields of the two tables together to display the Edit Relationships dialog box

And this is the relationship we want to establish:

Relationship Nn: Relationships Between Tables in Access — contextual image 11
Relationship nn

Previous article: 1-n relationship between tables in Access

Next lesson: Wildcard representation operator in Access

FAQ

What is Relationship Nn: Relationships Between Tables in Access about?

It provides a structured overview of relationship nn, explains the main context, and highlights practical takeaways for readers.

Why does this topic matter?

Understanding the main concepts helps readers evaluate the issue, avoid common mistakes, and make better-informed decisions.

How should readers use this information?

Use the guidance as a practical starting point, confirm details that may have changed, and follow current product, safety, or security recommendations.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.