I have one form I'd like to filter, and three tables.
Tables: Students, Hosts, Matches
Form: Students (pulls data directly from the Students table)
Matches is a junction table between Hosts and Students. I'd like to filter the Students form such that only those records show up that have no corresponding records in the Matches table.
I can create a query doing this easily enough.
But when I try to use this as a filter for the Students form, it doesn't work.
Help?
Tables: Students, Hosts, Matches
Form: Students (pulls data directly from the Students table)
Matches is a junction table between Hosts and Students. I'd like to filter the Students form such that only those records show up that have no corresponding records in the Matches table.
I can create a query doing this easily enough.
Code:
SELECT Students.ID
FROM Students LEFT JOIN Matches ON Students.ID = Matches.StudentID
WHERE Matches.StudentID is null
But when I try to use this as a filter for the Students form, it doesn't work.
Help?