P
Pendragon
Access03/WinXP
My main form has two subforms. Subform1 lists rooms and times and each
record has five individuals (monitors) to work the room. Subform2 allows the
user to assign or remove each of the five individuals. Subform 2 has five
combo boxes: Monitor1, Monitor2, etc., and command buttons to assign or
remove.
As the user clicks in Subform1 on a different record, I would like Subform2
to autofill the five combo boxes with the individuals currently assigned. I
have the code to autofill working in the main form's OnLoad property. For
Subform1, though, I've tried placing the code in the OnDirty, OnChange and
OnClick and it doesn't work. Where should this go, or what should I be doing?
The recordset for Subform1 has RoomID as primary key. On the main form, I
do have a text box referencing the RoomID and it does successfully change to
the correct value when the user clicks on a different record in Subform1.
Should I be using this as a source for the code?
Thanks for any suggestions!
My main form has two subforms. Subform1 lists rooms and times and each
record has five individuals (monitors) to work the room. Subform2 allows the
user to assign or remove each of the five individuals. Subform 2 has five
combo boxes: Monitor1, Monitor2, etc., and command buttons to assign or
remove.
As the user clicks in Subform1 on a different record, I would like Subform2
to autofill the five combo boxes with the individuals currently assigned. I
have the code to autofill working in the main form's OnLoad property. For
Subform1, though, I've tried placing the code in the OnDirty, OnChange and
OnClick and it doesn't work. Where should this go, or what should I be doing?
The recordset for Subform1 has RoomID as primary key. On the main form, I
do have a text box referencing the RoomID and it does successfully change to
the correct value when the user clicks on a different record in Subform1.
Should I be using this as a source for the code?
Thanks for any suggestions!