B
bhikku
I want to trigger the AfterUpdate event on a combo box on one form from the
AfterUpdate event on another form.
Here is the sequence:
- FormA opens
- FormB opens
- A value is selected from a combo box in FormB
- The source table for FormA is updated by the combo box in FormB
- The AfterUpdate event in a combo box in FormA is triggered, which updates
all of FormA
- FormB closes
I have this code in the AfterUpdate event for the combo box in FormB:
Forms.FormA.SetFocus
Forms.FormA.cmbSelectList_AfterUpdate
Forms.FormB.SetFocus
DoCmd.Close
The second line generates the error "Application-defined or object-defined
error".
How do I call an event on an object in a separate form?
b
AfterUpdate event on another form.
Here is the sequence:
- FormA opens
- FormB opens
- A value is selected from a combo box in FormB
- The source table for FormA is updated by the combo box in FormB
- The AfterUpdate event in a combo box in FormA is triggered, which updates
all of FormA
- FormB closes
I have this code in the AfterUpdate event for the combo box in FormB:
Forms.FormA.SetFocus
Forms.FormA.cmbSelectList_AfterUpdate
Forms.FormB.SetFocus
DoCmd.Close
The second line generates the error "Application-defined or object-defined
error".
How do I call an event on an object in a separate form?
b