Hi,
I have 3 tables as listed below:
tblClassDate
ClassDateID (PK)
ClassDate
tblStudents
StudentID (PK)
FirstName
Surname
tblAttendance
AttendanceID (PK)
StudentID
ClassDateID
AttendanceAM1
AttendanceAM2
AttendancePM1
AttendancePM2
I have created a form frmClassDate based on tblClassDate with a subform subfrmAttendance in datasheet view to show a list of student names and if they attended each session.
The idea of this is that I can add a new record to frmClassDate for each day and have the list below of students and who has attended. I have gone for this layout as the group changes often so could not be done as a set list.
However, I know it will be annoying to have to add each person every week so I was wondering if there was a way of creating a new record in frmClassDate (which would obvuously bring up a new blank subform) but have the subform subfrmAttendance autofill with the names from the previous record. This way I can remove any who no longer need to attened and add any new attendees without having to add those who are continuing.
I hope this makes sense and I have given all info you need, if not ask away!
I am a novice at VBA but am able to play around with little bits and pieces (I'm assuming it is this sort of coding I'll be needing)
All help welcome, thanks in advance.
Laura
I have 3 tables as listed below:
tblClassDate
ClassDateID (PK)
ClassDate
tblStudents
StudentID (PK)
FirstName
Surname
tblAttendance
AttendanceID (PK)
StudentID
ClassDateID
AttendanceAM1
AttendanceAM2
AttendancePM1
AttendancePM2
I have created a form frmClassDate based on tblClassDate with a subform subfrmAttendance in datasheet view to show a list of student names and if they attended each session.
The idea of this is that I can add a new record to frmClassDate for each day and have the list below of students and who has attended. I have gone for this layout as the group changes often so could not be done as a set list.
However, I know it will be annoying to have to add each person every week so I was wondering if there was a way of creating a new record in frmClassDate (which would obvuously bring up a new blank subform) but have the subform subfrmAttendance autofill with the names from the previous record. This way I can remove any who no longer need to attened and add any new attendees without having to add those who are continuing.
I hope this makes sense and I have given all info you need, if not ask away!
I am a novice at VBA but am able to play around with little bits and pieces (I'm assuming it is this sort of coding I'll be needing)
All help welcome, thanks in advance.
Laura