NauticalGent
Ignore List Poster Boy
- Local time
- Today, 16:50
- Joined
- Apr 27, 2015
- Messages
- 6,749
The title is a little misleading...
I know you can simply fire an event by typing:
But the question asked on a different forum was can you do this by looping through the form's controls. Below is what some of the suggestions were and what I tried on my test db:
I'm pretty sure this cannot be done but before I moved on I wanted to ask those whose Kung-Fu is greater than mine...
I know you can simply fire an event by typing:
Me.MyControlName_AfterUpdate
But the question asked on a different forum was can you do this by looping through the form's controls. Below is what some of the suggestions were and what I tried on my test db:
Code:
Dim ctl as Control
For Each ctl in Me.Controls
ctl.Name & "_AfterUpdate" ' Does not compile
Call ctl.Name & "_AfterUpdate" 'Does not compile
Run ctl.Name & "_AfterUpdate" 'Compiles but throws an error
[ctl.Name].[AfterUpate] 'Compiles but throws an error
Next
I'm pretty sure this cannot be done but before I moved on I wanted to ask those whose Kung-Fu is greater than mine...