Referring to controls

A

a

Thank you

How can I refer to (subform) from (subform) on the main form?

How can I refer to (subform) from (masterform)?

How can I refer to control on (master form) from (subform)?
 
S

Stuart McCall

a said:
Thank you

How can I refer to (subform) from (subform) on the main form?
Me.Parent!OtherSubformName.Form


How can I refer to (subform) from (masterform)?
Me!SubFormName.Form


How can I refer to control on (master form) from (subform)?

Me.Parent!ControlName
 
M

Minton M

Thank you

How can I refer to (subform) from (subform) on the main form?

How can I refer to (subform) from (masterform)?

How can I refer to control on (master form) from (subform)?

1. Me.Parent.SubformName2.Form will get you to the second subform from
a subform sharing the same main form.
2. Me.Parent.Form.
3. Me.Parent.Form.ControlName from the subform within the master form.

The liberal use of Me, Parent, Form and Subform name should help you
navigate around.

-- James
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top