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

subform in a collection

Status
Not open for further replies.

BoSoxFan

Programmer
Dec 3, 2002
9
US
I'm trying to disable controls on a subform during runtime. However, when I check the forms collection in the Immediate window, only the main form is there. Is there something weird about loading subforms into a collection?
 
Hi!

Subforms are not part of the forms collection. To get at the controls of a subform use the following:

Forms!MainForm!SubformControlName.Form.ControlName.Property

hth
Jeff Bridgham
bridgham@purdue.edu
 
Wow - thanks for the quick response! I'll give your recommendation a try.

Happy New Year:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top