G
Guest
is there a way I can loop through all the controls in all the subforms in an
Access form? I want to call a function in each control, so I have something
like:
Dim frmLoop As Form
Dim ctrLoop As Control
For Each frmLoop In Forms
For Each ctrLoop In frmLoop
Me.frmLoop.Controls.ctrLoop.OnUndo = "myProcedure"
Next ctrLoop
Next frmLoop
Am I on the right track? I know my syntax is bad. That's why it's not
working? Thanks for any help
Access form? I want to call a function in each control, so I have something
like:
Dim frmLoop As Form
Dim ctrLoop As Control
For Each frmLoop In Forms
For Each ctrLoop In frmLoop
Me.frmLoop.Controls.ctrLoop.OnUndo = "myProcedure"
Next ctrLoop
Next frmLoop
Am I on the right track? I know my syntax is bad. That's why it's not
working? Thanks for any help