change property value of fields

edp1959

Registered User.
Local time
Today, 18:40
Joined
Aug 24, 2003
Messages
23
I have 15 text fields on a form that have as default:
.visible = false

Is there a better way in code to universally change all of these to true other than:
[t1].visible = true
[t2].visible = true
[t3].visible = true
etc.......

I only want to change these 15 fields, the other text filelds on the form I want to stay as is.
 
Dim ctl As Control
For Each ctl In Me.Controls
If ctl.Tag = "A" Then
ctl.Visible = True
Else
ctl.Visible= False
End If

Next
 
I'm new at this so bare with me:

If ctrl.tag = "A" then

How would the "A" relate to my text fields that I want to change?
 
Just type A in the tag property of the controls you want to change
 
change property value of field

I must have been brain dead when I sent my last reply. After I sent it I realized what you ment. Thanks for the help, this worked great.
 

Users who are viewing this thread

Back
Top Bottom