Others

Display and Create Relationships in the Microsoft Access Student Database

Algirdas JasaitisAlgirdas Jasaitis Nov 27, 2026 869 views

Question details

The user wants to display and create relationships between tables in the Access Student Database desktop template.

Display and Create Relationships in the Microsoft Access Student Database
Product
Microsoft Access Student Database desktop template
Device & OS
not provided
Scenario
The user wants to understand the template's table structure and enforce links between students, attendance records, and guardians.
Observed behavior
The Relationships window does not show predefined relationships, although lookup fields are used for data entry.
Before you start

Open the desktop database in Access and check that the Students, Student Attendance, Student and Guardians, and Guardians tables exist. Verify the field names and data types in Design View, since template versions may differ.

Solution 1Recommended

Add the tables and create relationships with referential integrity

Use this method to display the relevant tables and define links that help prevent orphaned records.

Lookup fields can make data entry easier, but they do not necessarily create enforced table relationships. The table on the one side must have a primary key or a unique index, and the related fields must have compatible data types.

1
Open Relationships

Open the database in Access, then select Database Tools > Relationships.

2
Add the tables

Select Show Table or Add Tables, depending on your Access version. Add Students, Student Attendance, Student and Guardians, and Guardians, then close the table-selection pane or dialog.

3
Link students to attendance

Drag Students.ID to Student Attendance.Student. In Edit Relationships, verify the fields, select Enforce Referential Integrity, and click Create.

4
Link students and guardians

Drag Students.ID to Student and Guardians.StudentID and create the relationship with Enforce Referential Integrity selected. Repeat for Guardians.ID to Student and Guardians.GuardianID.

5
Save the design

Press Ctrl+S in the Relationships window to save the layout, then check that each relationship line connects the intended fields.

Add the tables and create relationships with referential integrity
If Access cannot enforce the relationship: Check for existing child records without matching parent records, incompatible field types, or a parent field that is not uniquely indexed. Correct the data or field design before trying again.
Free Microsoft Office alternative

Work with Office documents alongside your Access database

WPS Office is a free, lightweight alternative for everyday documents, spreadsheets, and presentations. Its familiar interface and Office format support make it easy to move common files between suites. Creating Access table relationships still requires Microsoft Access.

Review spreadsheet exports of student or attendance data in WPS SpreadsheetOpen and edit common Microsoft Office formats, including DOCX, XLSX, and PPTXUse a familiar interface for documents, spreadsheets, and presentationsMove common Office files into a lightweight, free suite
microsoft office alternative - wps office

Frequently Asked Questions

Why is the Access Relationships window empty?

The template may not have predefined relationships or may not display its tables in the layout. Open Database Tools > Relationships and use Show Table or Add Tables to inspect the relevant tables.

Does a lookup field enforce referential integrity?

Not necessarily. A lookup can display choices during data entry without enforcing a relationship. In Database Tools > Relationships, open or create the relationship and check whether Enforce Referential Integrity is selected.

Why can't I select or apply Enforce Referential Integrity?

Check that the parent field is a primary key or has a unique index, that the related field types are compatible, and that existing child records have matching parent records. Correct any issues, then reopen Edit Relationships.

Can WPS Office create relationships in an Access database?

No. Use Microsoft Access to create and enforce Access table relationships. WPS Spreadsheet can work with exported student data, but it does not replace Access relationship management.