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

How do I reference a control in an active subform?

Status
Not open for further replies.

Aximboy

Technical User
Aug 3, 2003
63
US
I know this is how to reference a control in an active parent form.

Code:
Forms([Screen].[ActiveForm].[Name])!txtFirstName.Visible = False

But how do I reference a control in an subform of that active parent form?



TIA



 
Thank you for your reply but that doesn't help me.

Here's what I'm planning to do...
I have several mainforms with subforms and several controls with the same functions to all the mainforms.
I renamed all the controls similar through all the mainforms so I can call them from a module to save from repetitive coding.

The problem I have is I cannot get the active subform's name.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top