JaedenRuiner
Registered User.
- Local time
- Today, 05:15
- Joined
- Jun 22, 2005
- Messages
- 154
So,
There are listboxes, and buttons, and all sorts of controls.
No imagine a method: DoSomething(byval lb as ListBox)
in this method we do some affects, add some values to the underlying datasource, and execute a lb.Requery.
that part works fine, however, some of these listboxes have their "AfterUpdate" event set which works fine in most circumstances, but I want to basically execute something like: lb.PerformAfterUpdate, or to that effect that would say: if the AfterUpdate event is set, execute it, if not ignore and continue. Same would be true for the Click event, or Enter event, etc. I just want to trigger a control's event without knowing the procedure name. I'm well aware that I could do myform!my_lb_afterupdate(), but that means i'd have to know what listbox the lb variable points to.
Is this possible in VBA/Access?
ThHanks
Jaeden "Sifo Dyas" al'Raec Ruiner
There are listboxes, and buttons, and all sorts of controls.
No imagine a method: DoSomething(byval lb as ListBox)
in this method we do some affects, add some values to the underlying datasource, and execute a lb.Requery.
that part works fine, however, some of these listboxes have their "AfterUpdate" event set which works fine in most circumstances, but I want to basically execute something like: lb.PerformAfterUpdate, or to that effect that would say: if the AfterUpdate event is set, execute it, if not ignore and continue. Same would be true for the Click event, or Enter event, etc. I just want to trigger a control's event without knowing the procedure name. I'm well aware that I could do myform!my_lb_afterupdate(), but that means i'd have to know what listbox the lb variable points to.
Is this possible in VBA/Access?
ThHanks
Jaeden "Sifo Dyas" al'Raec Ruiner