Referring to a control on a form

  • Thread starter Thread starter Jim Pockmire
  • Start date Start date
J

Jim Pockmire

In VBA, how do I refer to a control on a form when the control is a
variable? e.g.

Set ctl = Forms!TestForm!TestControl (works)

,but what if TestForm and TestControl are variables.
 
Back
Top