Show Students with Missing Test Records in an Access Form
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.
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.
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.
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.
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.
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.
Select the Students table in the Navigation Pane, then choose Create > Form to create a form whose record source is Students.
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.
Switch to Form View and navigate to a student without test records. The student should remain visible, with an empty results subform.
Use Left Joins to Keep Students in an Access Query
Use this approach when the form needs a query as its record source and related test records may be missing.
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.

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.




