G
Guest
I have a form [frmAgreement] with couple of combo boxes called
[cboPartySelect] and [cboContactSelect]. The form includes a Command Button
that opens a subform [subfrmParty] where the user can enter address
information for the party associated with the agreement listed in the main
form.
The subform [subfrmParty] also includes an embedded sub-subform
[subfrmContact] where the user can enter the names of specific contacts
associated with that party.
A given agreement can only have ONE party selected from [cboPartySelect] and
ONE contact selected from [cboContactSelect]. However, a given party can have
multiple contacts associated with it.
I have already set up an After_Update event so that when a user enters a new
party name in the subform [subfrmParty] and then closes the subform, the
party name it is automatically filled in in the control [cboPartySelect] in
the main form.
What I would like to do in addition -- and what I can't seem to figure out a
way to do -- is to automatically fill in the control [cboContactSelect] with
the most recent contact entered in the sub-subform [subfrmContact], if in
fact it gets updated. If it doesn't get updated, the box can remain empty.
I thought this would be easy to do but I just can't figure it out.
[cboPartySelect] and [cboContactSelect]. The form includes a Command Button
that opens a subform [subfrmParty] where the user can enter address
information for the party associated with the agreement listed in the main
form.
The subform [subfrmParty] also includes an embedded sub-subform
[subfrmContact] where the user can enter the names of specific contacts
associated with that party.
A given agreement can only have ONE party selected from [cboPartySelect] and
ONE contact selected from [cboContactSelect]. However, a given party can have
multiple contacts associated with it.
I have already set up an After_Update event so that when a user enters a new
party name in the subform [subfrmParty] and then closes the subform, the
party name it is automatically filled in in the control [cboPartySelect] in
the main form.
What I would like to do in addition -- and what I can't seem to figure out a
way to do -- is to automatically fill in the control [cboContactSelect] with
the most recent contact entered in the sub-subform [subfrmContact], if in
fact it gets updated. If it doesn't get updated, the box can remain empty.
I thought this would be easy to do but I just can't figure it out.