Main form's name from subform

supmktg

Registered User.
Local time
Today, 12:07
Joined
Mar 25, 2002
Messages
360
I have 2 forms that use a common subform. On open of the subform, I want to make a command button either visible or not depending on which form is opening it. How can I get the name of the Main form?

Thanks,
Sup
 
Perfect, Thanks!
Sup
 
you dont even need the name - you can just use the parent object

from the subform, you can just say

parent!somebutton.visible = false
 

Users who are viewing this thread

Back
Top Bottom