How to determine the CONTROL name of a subform on a main form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible in a Properties window to determine what the "CONTROL" in the
following statement is?
"Subform1 is the name of the subform CONTROL on mainform"?

How do I know what box is a SubFormControl box on a Main form?

I've been told:
SubForms are displayed on forms by putting them in SubFormControls.
SubFormControls are for displaying Forms on other Forms. Most of the time
the developer doesn't change the name and I think the default name is the
same of the SubForm, but it doesn't have to be! At any rate the
SubFormControl has it's own name and the the form displayed within it (the
SubForm) has another name, that can be the same if you so choose.

Thank you for your help
 
In Design view, when the Subform control is selected, the Title Bar of the
Properties window will read:
"Subform/SubReport: xxxx"
where xxxx is the name of the control. (xxxx will also appear in the
Properties window as the Name property, which you can change).

In addition, the Properties window will include 2 properties that are unique
to this type of control: "Link Child Fields" and "Link Master Fields".
You'll never see these anywhere else except in a subform control.

The "SourceObject" property will contain the name of the form/report that
the control is going to use as the subform/subreport. However, this
property (as well as the Link Fields) could be left blank and be filled via
code at runtime. Even so, the name of the control itself will not change,
just the values of these properties which determine its contents.

Subform/Subcontrol is available on the Control Toolbox toolbar, just like a
CommandButton or TextBox. Try making one (wizard optional) and see for
yourself.

HTH,
 
Back
Top