Good morning!!!
I have a form where we do "After Actions" on different case through out the month. I have an attendance form where we take everyone's name who is there...
Once one record is done we move to the next record but I (nor does any one else) want to re-type all the names again. So I have a check box that says.."Same attendance as last record?"
When I check this box I want it to insert into the table Attendance the same list of names that was on the previous record.
This is what I have...
There are fields for date (which are set to Now() ) Should I use that in the where statement instead of the MedAARID?
Thanks!
Larry
I have a form where we do "After Actions" on different case through out the month. I have an attendance form where we take everyone's name who is there...
Once one record is done we move to the next record but I (nor does any one else) want to re-type all the names again. So I have a check box that says.."Same attendance as last record?"
When I check this box I want it to insert into the table Attendance the same list of names that was on the previous record.
This is what I have...
Code:
DoCmd.RunSQL "INSERT INTO MedAAR_Attendance ( Name, Role, MedAARID )" & _
"SELECT MedAAR_Attendance.Name, MedAAR_Attendance.Role, MedAAR_Attendance.MedAARID" & _
"FROM MedAAR_Attendance " & _
"WHERE Me.MAAR_ID - 1 = (Select Top 1 MedAARID From MedAARAttendance)"
There are fields for date (which are set to Now() ) Should I use that in the where statement instead of the MedAARID?
Thanks!
Larry