subforms: using input from one subform to update the other subform

A

Angela

Hello. I'm hoping that someone can help me.

I have 2 subforms on separate tabs. Based on a user's input on subform 1, I
would like a combo box on subform 2 to be enabled or disabled.

Does anyone have a solution? Please let me know. Thanks in advance.
 
D

Douglas J. Steele

Controls on subforms are always referred to via the parent form. See
http://www.mvps.org/access/forms/frm0031.htm at "The Access Web" for
details.

Note that depending on how the forms were added as subforms, the name of the
subform control may be different than the name of the form being used as a
subform. It's the name of the subform control you need to use.
 
A

Angela

Thanks for the link Doug. I tried them but get referential errors in the
form's on current event for codes. I don't know what the problem is because
the same code works in the AfterUpdate event.
 

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