I asked about this quite some time ago and was told that I could not use a control array. I kept trying and never found a way so I would say no.
In my case I needed to change properties for a large number of controls on forms.
I was advised by one of the bright guys (These guys are great) here to use something like this:
dim ctrl as controls
For Each ctrl In Me.Control
If (ctrl.ControlType = acTextBox) Then
If ctrl.Tag = "1" Then
ctrl.Enabled = True
ctrl.Locked = False
ctrl.BackColor = vbWhite
End If
End If
Next ctrl
Once I decided to use my head to think with instead of battering down brick walls with it, I went back ad changed all the goofy code I had to variations of this. Worked well for what I needed Terry (cyberbiker)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.