Display and Create Relationships in the Microsoft Access Student Database
Question details
The user wants to display and create relationships between tables in the Access Student Database desktop template.

- 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.
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.
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.
Open the database in Access, then select Database Tools > Relationships.
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.
Drag Students.ID to Student Attendance.Student. In Edit Relationships, verify the fields, select Enforce Referential Integrity, and click Create.
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.
Press Ctrl+S in the Relationships window to save the layout, then check that each relationship line connects the intended fields.

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.

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.




