skip to main content



Skip navigation, view page content
Short Courses Schedule | OIT Home Page

Access 2007: Table Relationships


In a relational database, data is divided among two or more tables that share at least one common field (for example, a student, a course number, and so on). After you have created the tables, the next step is identifying the linked fields in each to build a relationship. There are some rules to consider when creating table relationships. The linked field names do not need to be identical, but the data type for each must be the same (for example, you cannot link a text field to a numeric field).

Normally the field linked is one table's primary key (a unique identifier for each record), but usually is not the other table's primary key (although it can occur). The linked field in the second table is referred to as the foreign key (a value corresponding to the primary key within the first table). Avoid linking fields containing information that may be duplicated or changed (for example, two instructors with the same name or a course name that is changed).

Following are the three different types of table relationships:

Older versions of Access required a third table (called a junction table) to accomplish a many-to-many relationship. Access 2007 now allows the creation of many-to-many relationships between two tables via multivalue fields. This is an advanced topic and will not be covered in this tutorial. For more information, click Help button [Online Help button] and search for "Table Relationships."

To add a table relationship:

If any tables appear on the Relationships tab, it means relationships have previously been defined for the database. If more than one person has access to the database, check with the others before changing a relationship.

To edit or remove a table relationship: