Using Variables in controls

kenneth.campos

Registered User.
Local time
Today, 15:53
Joined
Jan 2, 2010
Messages
11
How can I make this work correctly?
I have 10 text boxes and I want to use the loop to make them not visible.
Code:
For i = 1 to 10
Me.Texti.Visible = False
Next
Tried different punctuation and even putting parts of it into a variable but still failed.
 
Kenneth,

Me.Controls("Text" & Cstr(i)).Visible = False

Wayne
 

Users who are viewing this thread

Back
Top Bottom