Others

Show Students with Missing Test Records in an Access Form

Amos GikundaAmos Gikunda Nov 22, 2026 868 views

Question details

Show all students in an Access form, including those without test records for every year.

Product
Microsoft Access
Device & OS
not provided
Scenario
A teacher wants to track student test results across three years of Excel files in one Access form.
Observed behavior
A form based on an inner-join query displays only students with matching records in every related table, excluding students who lack one or more records.
Before you start

Check that student IDs use consistent values and compatible data types across the imported Excel tables. Identify which table contains the complete list of students; if none does, create one containing each student only once.

Solution 1Recommended

Use a Student Form with a Linked Test Results Subform

Use a parent student table and a child test-results table to show each student even when no test results exist.

Store each student once in a Students table, with StudentID as its primary key. Store test results in a separate table with StudentID, year, test, and result fields; each result is a child record linked to its student.

Consolidate the three imported files into these tables, checking student IDs and avoiding duplicate results. A student can have several test-result records or none.

1
Prepare the tables

In Access, use Create > Table Design to create or review the Students and TestResults tables. Set Students.StudentID as the primary key and include a compatible StudentID field in TestResults.

2
Add the imported data

Use the imported Excel tables to populate Students with one record per student and TestResults with one record per student, year, and test. Include a year field so results from different files can be distinguished.

3
Create the relationship

Open Database Tools > Relationships, add both tables, and drag Students.StudentID to TestResults.StudentID. Enable referential integrity if the existing data permits it, then select Create.

4
Build the main form

Select the Students table in the Navigation Pane, then choose Create > Form to create a form whose record source is Students.

5
Add and link the subform

Open the main form in Design View and add a Subform/Subreport control using TestResults as its source. In the subform control's Property Sheet, set Link Master Fields and Link Child Fields to StudentID.

6
Check a student with no results

Switch to Form View and navigate to a student without test records. The student should remain visible, with an empty results subform.

Blank results do not explain why: A missing test record does not by itself show whether a student transferred, graduated, or simply has no recorded result.
Free Microsoft Office alternative

Review Student Test Files with WPS Spreadsheets

WPS Office is a free, lightweight alternative with a familiar interface for reviewing and consolidating Excel test-data files. Its format compatibility makes spreadsheet migration straightforward, although it does not fix Access forms or replace Access database relationships.

Review student IDs and year-by-year test data in spreadsheets.Open and edit Microsoft Excel formats, including XLSX and XLS.Use a familiar spreadsheet interface for an easier transition.Work with a free, lightweight office suite.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my Access form show only students with complete records?

If the form's record source uses inner joins, Access returns only students whose IDs match in every joined table. Open the query in Design View and inspect its join lines.

How do I show a student who has no test results?

Base the main form on a complete Students table and link a TestResults subform by StudentID. The student remains visible even when the subform has no matching rows.

Should I combine all three Excel files into one Access database?

You can import the files into one database, then organize the data into a student table and a test-results table. Keep one student record per ID and include the year and test in each result record.

Why are students still missing after I change to a left join?

Check that the join preserves all rows from the Students table and that other joins or criteria do not exclude unmatched records. Also confirm that the Students table contains the missing students.

What is a child table in this database?

TestResults is a child table because each result links to a student through StudentID. One student in the parent Students table can have many result records or none.