I am trying to setup a query that will return a list of gymnasts who have not turned in a permission slip for a given meet taking place within a given year. I created a query to return all gymnasts that are still active and want to compare the results of this query to the contents of a table that’s used to record the receipt of permission slips. I am new to Microsoft Access and do not know if this is even remotely close to the right approach, but I have included the SQL for what I attempted, which returns no results. I would appreciate any feedback on the best method for obtaining the desired data:
PARAMETERS [Enter Meet Name:] Text ( 255 ), [Enter the Year in which Competition Occurs:] Long;
SELECT qryActiveGymnasts.LastName, qryActiveGymnasts.FirstName, qryActiveGymnasts.Level, qryActiveGymnasts.EmailAddress, qryActiveGymnasts.HomePhone, qryActiveGymnasts.MobilePhone
FROM qryActiveGymnasts LEFT JOIN tblMeetAttendance ON qryActiveGymnasts.[ID] = tblMeetAttendance.[Gymnast]
WHERE (((tblMeetAttendance.Meet)=[Enter Meet Name:]) AND ((tblMeetAttendance.CompetitionYear)=[Enter the Year in which Competition Occurs:]) AND ((tblMeetAttendance.Gymnast) Is Null));
PARAMETERS [Enter Meet Name:] Text ( 255 ), [Enter the Year in which Competition Occurs:] Long;
SELECT qryActiveGymnasts.LastName, qryActiveGymnasts.FirstName, qryActiveGymnasts.Level, qryActiveGymnasts.EmailAddress, qryActiveGymnasts.HomePhone, qryActiveGymnasts.MobilePhone
FROM qryActiveGymnasts LEFT JOIN tblMeetAttendance ON qryActiveGymnasts.[ID] = tblMeetAttendance.[Gymnast]
WHERE (((tblMeetAttendance.Meet)=[Enter Meet Name:]) AND ((tblMeetAttendance.CompetitionYear)=[Enter the Year in which Competition Occurs:]) AND ((tblMeetAttendance.Gymnast) Is Null));