Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing the properties of a control from a subform

Status
Not open for further replies.

nic6000

MIS
Mar 15, 2007
18
GB
Hi, I wonder if someone could help me with the following...

Basically I'm trying to disable a button on a form when a specific action happens on the subform. I have searched around for an answer and the closest thing I can come up with is by using the Parent Property, But cant get it to work, the syntax I'm using returns a 'object defined error'.

This is what I have tried - probably way out on this: -

Me.Parent.frmMain.btnGotoMain.Visible = False

Please can someone help with this, you would be appreciated.

Thanks,

Nic

 
Parent includes the form reference, so:

[tt]Me.Parent.btnGotoMain.Visible = False[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top