Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Numeric reference for controls 1

Status
Not open for further replies.

Waynest

Programmer
Jun 22, 2000
321
GB
I have a form with 50+ controls on it. Depending on user input, I want to set the visible property of certain controls.

Isn't there a way of referencing the controls by an index instead of by name (a la control array style) so I can use a loop to set the visible properties?
 
name your controls text1,text2,text3

for i = 1 to 3
me.controls("text" & i).visible = false
next i
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top