LukeSky
Registered User.
- Local time
- Yesterday, 17:58
- Joined
- Aug 4, 2016
- Messages
- 12
Hi, all.
I have two forms, one mainform and another form, form2, that is open from mainform.
In mainform, has one combobox and after inserting data, it trigger event executing macro "test" for showing a msgbox.
In form2, has another combobox that after inserting data, it trigger event executing vba code for changing data mainform's combobox. When close form2 for coming back to mainform, the macro is not triggered in event AfterUpdate.
My question is how I could do for forcing execute that event.
Is necessary that in vba code inserting?:
If I was using vba for controling that combobox, I know that could use "cbo_AfterUpdate" but it is not my doubt. I would just like to know if there would be another way to force the execution of event AfterUpdate that has one "macro" instead of "Event Procedure".
I attach example database. Thanks in advance and forgive me my english that is not my native language.
I have two forms, one mainform and another form, form2, that is open from mainform.
In mainform, has one combobox and after inserting data, it trigger event executing macro "test" for showing a msgbox.
In form2, has another combobox that after inserting data, it trigger event executing vba code for changing data mainform's combobox. When close form2 for coming back to mainform, the macro is not triggered in event AfterUpdate.
My question is how I could do for forcing execute that event.
Is necessary that in vba code inserting?:
Code:
docmd.runMacro "test.msg"
If I was using vba for controling that combobox, I know that could use "cbo_AfterUpdate" but it is not my doubt. I would just like to know if there would be another way to force the execution of event AfterUpdate that has one "macro" instead of "Event Procedure".
I attach example database. Thanks in advance and forgive me my english that is not my native language.
Attachments
Last edited: