G
Guest
Hi,
I have a form with numerous controls. I want to be able to programatically
set all the control's event procedures to a single procedure.
For example - I want all controls AfterUpdate event to point to another
procedure located in the form itself.
I tryed this:
Dim Ctrl as Variant
For Each Ctrl In Me.Controls
If (Ctrl.ControlType = acCheckBox) Or (Ctrl.ControlType = acComboBox)
Or (Ctrl.ControlType = acTextBox) Then Ctrl.AfterUpdate = "Proc1()"
Next Ctrl
But this just set the the name....
how can i do this ?
I have a form with numerous controls. I want to be able to programatically
set all the control's event procedures to a single procedure.
For example - I want all controls AfterUpdate event to point to another
procedure located in the form itself.
I tryed this:
Dim Ctrl as Variant
For Each Ctrl In Me.Controls
If (Ctrl.ControlType = acCheckBox) Or (Ctrl.ControlType = acComboBox)
Or (Ctrl.ControlType = acTextBox) Then Ctrl.AfterUpdate = "Proc1()"
Next Ctrl
But this just set the the name....
how can i do this ?