S
serviceman via AccessMonster.com
The more I learn, the more I trouble I get into...
I have a table ATTENDANCE_HDR that has a one to many ralationship with table
TESTRESULTS. PK on ATTENDANCE_HDR is event_dat,event_id,location_id and on
TESTRESULTS it is event_dat,event_id,location_id, and student_id. I have
created a form for ATTENDANCE_HDR that has a combobox lookup on event_id.
Adding a subform based on TESTRESULTS is ok, and we need to look up
student_id from table STUDENTS in order to add a record. A combobox works
fine for single record entry, but for this form I would like to do multiple
record entries at once. I have played with list boxes, but I really like the
looks of a non-related datasheet subform on table STUDENTS joined with a temp
table and a yes/no check box. I can get this all added fine, but I just
CANNOT get the code for a button to take the selected students and related
data from the main form key fields and insert/update TESTRESULTS., then clear
the checkboxes in the temp table for the next session.
HELP!! I can't figure this out and my coffee pot is getting empty!
Andy
I have a table ATTENDANCE_HDR that has a one to many ralationship with table
TESTRESULTS. PK on ATTENDANCE_HDR is event_dat,event_id,location_id and on
TESTRESULTS it is event_dat,event_id,location_id, and student_id. I have
created a form for ATTENDANCE_HDR that has a combobox lookup on event_id.
Adding a subform based on TESTRESULTS is ok, and we need to look up
student_id from table STUDENTS in order to add a record. A combobox works
fine for single record entry, but for this form I would like to do multiple
record entries at once. I have played with list boxes, but I really like the
looks of a non-related datasheet subform on table STUDENTS joined with a temp
table and a yes/no check box. I can get this all added fine, but I just
CANNOT get the code for a button to take the selected students and related
data from the main form key fields and insert/update TESTRESULTS., then clear
the checkboxes in the temp table for the next session.
HELP!! I can't figure this out and my coffee pot is getting empty!
Andy