Sorry if the title to this question didn't really make much sense - hard to think how to easily explain this :)
If I want to target a label on a form I can use
What do I use to target a variable I set for the form as, say, Private myName as String?
The following fails so I assume these aren't controls but are something else?
Many thanks!
If I want to target a label on a form I can use
Code:
dim labelname = "myLabel" Me.Controls(labelname).Text = "John"
The following fails so I assume these aren't controls but are something else?
Code:
dim thisname = "myName" Me.Controls(thisname).Text = "John"
Comment