Sub forms

How can I refer to a text box in my subform from my VB code in the parent form.

thank you
abidsmlAsked:
Who is Participating?
 
yfangConnect With a Mentor Commented:
Including the formname.  For excample: if your child form is frmChild and the textbox is text1.  You could change the text in the textbox into "test" using the code in the parent form in this way:

frmChild.text1.text="test"
0
 
abidsmlAuthor Commented:
thank you
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.