S
Scoop
I have an order entry application. On the main order form there is one
combo box bound to "BillToCustomerID" and another bound to
"ShipToCustomerID". There are also subforms linked to each for the
Billing and Shipping Addresses.
When a user selects either customer from the combo box, I am running an
AfterUpdate event to requery the Address subforms. This works great
but...
I also have a Search form that can be opened by a button next to each
combo box. It allows the user to search for a Customer. I would like
to pass the "CustomerID" back to the Order form based on the results of
the search. I have been trying to use code like the following:
Forms!frm_Order!BillToCustomerID =
Forms!frm_CustomerSearch!frm_CustomerSearchSUB!CustomerID
I have tried both updating the field and the control (combo box) bound
to the field and niether seems to trigger the AfterUpdate event that I
need to fill in the address sub form. The new Customer displays in the
combo box but it appears as if the field in the record has not been
updated because even when I manually requery the Address sub form, the
addresse(s) associated with the new Customer do not appear.
Any help is greatly appreciated!
combo box bound to "BillToCustomerID" and another bound to
"ShipToCustomerID". There are also subforms linked to each for the
Billing and Shipping Addresses.
When a user selects either customer from the combo box, I am running an
AfterUpdate event to requery the Address subforms. This works great
but...
I also have a Search form that can be opened by a button next to each
combo box. It allows the user to search for a Customer. I would like
to pass the "CustomerID" back to the Order form based on the results of
the search. I have been trying to use code like the following:
Forms!frm_Order!BillToCustomerID =
Forms!frm_CustomerSearch!frm_CustomerSearchSUB!CustomerID
I have tried both updating the field and the control (combo box) bound
to the field and niether seems to trigger the AfterUpdate event that I
need to fill in the address sub form. The new Customer displays in the
combo box but it appears as if the field in the record has not been
updated because even when I manually requery the Address sub form, the
addresse(s) associated with the new Customer do not appear.
Any help is greatly appreciated!