Tree subforms in a form

R

ReidarT

I have a form with 3 subforms. How do I change recordsource on subform3
after update of combobox on subform2
Mainmenu
SubForm1
SubForm2
SubForm3
Forms!MainMenu!SubForm1.Form!Subform2.Form!SubForm3.Form!RecordSource =
"tblTableName" ???

reidarT
 
D

Douglas J Steele

Is SubForm3 on SubForm2 which is on SubForm1, or are all 3 subforms of the
main form?

Are SubForm1, SubForm2 and SubForm3 the names of the controls that hold the
subforms, as opposed to the names of the forms that are displayed in that
control (Access defaults them to the same name, but some people change
them...)

If you picked the first choice for both questions, then

Forms!MainMenu!SubForm1.Form!Subform2.Form!SubForm3.Form.RecordSource =
"tblTableName"

should work (the only difference I have above is that I used .RecordSource,
not !RecordSource)
 

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