I work at a school and we are trying to develop a way for an instructor to enter attendance directly into a access form. We have 2 tables that relate to this problem
tblClients
------------------------
SocialSecurityNumber ---PK
FirstName
LastName
InstructorID ---FK to tblInstructors
Active true/false
tblClientAttendance
---------------------------
AttendanceID --PK AutoNumber
CientID --FK to tblClients
AttDate
AMPresent
PMPresent
I tried to use a left join off a query
Query1:
SELECT DISTINCT tblClientAttendance.ClientID, tblClientAttendance.PMPresent, tblClientAttendance.AMPresent
FROM tblClientAttendance
WHERE ((([tblClientAttendance].[AttDate])=Date()));
Query2:
SELECT tblClients.FirstName, tblClients.LastName, Query1.PMPresent, Query1.AMPresent
FROM tblClients LEFT JOIN Query1 ON tblClients.SocialSecurityNumber = Query1.ClientID
WHERE (((Query1.ClientID) Is Null));
This gave me the data i neeeded but it was in an noneditable form. I have tried many other ways but with no luck. I have seen a attendance form like this at another school years back so i know it is possible. I just need to be pointed into the right direction.
Thanks from all of the Staff at the Red Apple School
tblClients
------------------------
SocialSecurityNumber ---PK
FirstName
LastName
InstructorID ---FK to tblInstructors
Active true/false
tblClientAttendance
---------------------------
AttendanceID --PK AutoNumber
CientID --FK to tblClients
AttDate
AMPresent
PMPresent
I tried to use a left join off a query
Query1:
SELECT DISTINCT tblClientAttendance.ClientID, tblClientAttendance.PMPresent, tblClientAttendance.AMPresent
FROM tblClientAttendance
WHERE ((([tblClientAttendance].[AttDate])=Date()));
Query2:
SELECT tblClients.FirstName, tblClients.LastName, Query1.PMPresent, Query1.AMPresent
FROM tblClients LEFT JOIN Query1 ON tblClients.SocialSecurityNumber = Query1.ClientID
WHERE (((Query1.ClientID) Is Null));
This gave me the data i neeeded but it was in an noneditable form. I have tried many other ways but with no luck. I have seen a attendance form like this at another school years back so i know it is possible. I just need to be pointed into the right direction.
Thanks from all of the Staff at the Red Apple School