S supmktg Registered User. Local time Today, 12:07 Joined Mar 25, 2002 Messages 360 Oct 6, 2010 #1 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
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
boblarson Smeghead Local time Today, 10:07 Joined Jan 12, 2001 Messages 32,040 Oct 6, 2010 #2 Me.Parent.Name
S supmktg Registered User. Local time Today, 12:07 Joined Mar 25, 2002 Messages 360 Oct 6, 2010 #3 Perfect, Thanks! Sup
gemma-the-husky Super Moderator Staff member Local time Today, 18:07 Joined Sep 12, 2006 Messages 16,072 Oct 6, 2010 #4 you dont even need the name - you can just use the parent object from the subform, you can just say parent!somebutton.visible = false
you dont even need the name - you can just use the parent object from the subform, you can just say parent!somebutton.visible = false