ChrisO
Registered User.
- Local time
- Today, 09:48
- Joined
- Apr 30, 2003
- Messages
- 3,202
I don't like writing code like this but to get as close to your syntax as I can it would be: -
Code:
Private Sub MySub()
Call MyFunction(Forms("MyForm")("MySubForm").Controls("MyControl"))
End Sub
Function MyFunction(ControlName)
ControlName.Visible = False
End Function