Referring to a control on a form

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top