S
Sue Peirce
Hi,
From a seminar event booking form (main form - event
details, subform - students booked onto it) I'm trying to
sort out a pop-up form to add the records required for a
new student before booking that student onto the seminar
event. (Some bookings will be for students that already
exist on the database and for others I want to create the
bare bones information to allow the booking to be made,
other details will be added after the student attends.)
I know that my pop-up form is creating the records on
the 'Person' and 'Enrolment' tables but when I close the
pop-up and try to refresh the booking form so that the
student's name appears in the subform I get an error
message. The personID autonumber field is used for a
multiple-field combo box so that the student's name
appears (PersonID is the invisible first, bound column of
the combo box). The message says that there's no record in
the Person table with 'key matching fields ", " '.
How do I update the combo box value with the PersonID and
get it to display the name information correctly. I've
tried various combinations of form/subform 'refresh' and
form/combo box 'requery'. I use the following to save the
records before doing this:
"DoCmd.DoMenuItem acFormBar, acRecordsMenu,
acSaveRecord, , acMenuVer70"
Thanks
Sue
From a seminar event booking form (main form - event
details, subform - students booked onto it) I'm trying to
sort out a pop-up form to add the records required for a
new student before booking that student onto the seminar
event. (Some bookings will be for students that already
exist on the database and for others I want to create the
bare bones information to allow the booking to be made,
other details will be added after the student attends.)
I know that my pop-up form is creating the records on
the 'Person' and 'Enrolment' tables but when I close the
pop-up and try to refresh the booking form so that the
student's name appears in the subform I get an error
message. The personID autonumber field is used for a
multiple-field combo box so that the student's name
appears (PersonID is the invisible first, bound column of
the combo box). The message says that there's no record in
the Person table with 'key matching fields ", " '.
How do I update the combo box value with the PersonID and
get it to display the name information correctly. I've
tried various combinations of form/subform 'refresh' and
form/combo box 'requery'. I use the following to save the
records before doing this:
"DoCmd.DoMenuItem acFormBar, acRecordsMenu,
acSaveRecord, , acMenuVer70"
Thanks
Sue