GKChesterton
Programmer
I want some fields to become visible. I want to set the list of those fields in primitive fashion, using Array function. The part in red seems to be hard for me to get right.
Code:
Private Sub ShowFields()
Dim ControlNames As Variant
ControlNames = Array("textbox1", "textbox5", "textbox6")
For Each [COLOR=red][element][/color] In ControlNames
FieldName = ControlNames()
Me![FieldName].Visible = True
Next
End Sub
[purple]If we knew what it was we were doing, it would not be called
research [blue]database development[/blue], would it? [tab]-- Albert Einstein[/purple]