2

So if I want to reference a control (like a text box) on a sub form, from the CBF of the parent form, how should I do this?

me.SubForm.SubControl 

Gives me an error.

1 Answer 1

4
Me.SubformControlName.Form.SomeControl 

Be sure to use the name of the subform control, not the form contained - they are often the same, but not always.

More info: http://www.mvps.org/access/forms/frm0031.htm

Sign up to request clarification or add additional context in comments.

1 Comment

For those who use ! instead of . that would be Me!SubformControlName.Form!SomeControl.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.