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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing subforms from a Function

Status
Not open for further replies.

NWTrust

Technical User
Apr 2, 2002
68
GB
I can make changes to a form from a Function using the following code:
"Forms![frmSomeName].btnFirst.enabled etc".
I would like to do the same to a subform but the code
"Forms![subfrmSomeName].btnFirst.enabled etc"
does not work. Can someone help me with this, please.
 
but the code [...] does not work."
What does it do? Do you get any errors? Does it blow up?
Could you show your code in question and where it is placed?

Have fun.

---- Andy
 
Use this syntax:
Forms![MainFormName]![subfrmSome Control Name].Form!btnFirst.Enabled etc

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Nice one PHV, it works a treat. Thanks a lot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top