SteveClarkson
Registered User.
- Local time
- Today, 23:05
- Joined
- Feb 1, 2003
- Messages
- 439
Hello,
I am sure this must be possible, and can't believe I can't find anything on it - I must be using the wrong terminology!
In VBA I would like to use code something like this:
The idea being, that when you click the button this code is on, it will look up the subform parents' name, and set it's "Visible" property to FALSE.
My hope is that I can use this code in a subform which is used in several parent forms - and it will cut down on VBA code somewhat.
Any help much appreciated!
I am sure this must be possible, and can't believe I can't find anything on it - I must be using the wrong terminology!
In VBA I would like to use code something like this:
Code:
"Forms!" & Form.Parent.Name & ".Visible=False"
The idea being, that when you click the button this code is on, it will look up the subform parents' name, and set it's "Visible" property to FALSE.
My hope is that I can use this code in a subform which is used in several parent forms - and it will cut down on VBA code somewhat.
Any help much appreciated!