First of all I would probably use an append query to do this
INSERT INTO Attendance(StudentID, Attended, Subject, [Date])
SELECT Y.StudentID, True, "Science", Date()
FROM Yr8Students as Y LEFT JOIN
(SELECT A.StudentID
FROM Attendance as A
WHERE A.Date = Date()
AND A.Subject = "Science") as Aa
ON Y.StudentID = Aa.StudentID
WHERE Aa.StudentID is Null
You might need to do the above query in steps.
First Query - Identify all those students that already have an Attendance
record for the date and subject.
Second query - Use the above query as part of an unmatched query against
Yr8StudentsTable to identify which students need an attendance record
Third query - is the the append query where you use the results of the
second query

Signature
John Spencer
Access MVP 2002-2005, 2007-2008
Center for Health Program Development and Management
University of Maryland Baltimore County
.
> Hi,
>
[quoted text clipped - 71 lines]
> records
> with new records based upon a different attendance date
Dave Nene - 04 Mar 2008 22:25 GMT
Hi John,
Thank you for that, I was wondering if a query was the way to go.
Let me add something.
All of this was to create a register for a particular class.
The class members, e.g. the Yr 8's are all known and typically populate the
1 side.
The idea is that when the teacher needs to take the register for a
particular class he creates a form which lists all the students names on the
left with the fields from attendance to the right of those.
The information relating to the Attendance fields will be unique and only
ever relate to that particular Subject class at that particular Date/Time.
Typically students will all be marked attending, but of course the teacher
will be able to toggle those who aren't to not attending etc.
I will look through the SQL John and come back to you when I have
experimented with it.
Thank you for your time and trouble. Much appreciated.
Regards
Dave
> First of all I would probably use an append query to do this
>
[quoted text clipped - 93 lines]
> > records
> > with new records based upon a different attendance date