I am trying to develop an MS Access form with several sub forms. I wanted to use a single master form and have several child sub forms as sources. What I need to know is how to do this.
The plan is to have the user enter a code A,B,C,N in a text box.
---------------------------------------------------
A = frmSubFormA
B = frmSubFormB
C = frmSubFormC
N = frmSubFormN
---------------------------------------------------
Depending on which code is entered in the text box, the relevant Sub form will appear.
txtCode = A
---------------------------------------------------
A = frmSubFormA
---------------------------------------------------
I tried using a simple (VISIBLE = TRUE/FALSE), bit of code but the link table I created for the orders, recorded an order in all of the sub form tables.
I know that it is possible to use SOURCEOBJECT in the VBA but don't know how to code it right, so that the correct Sub-form is used.
Any response would be helpful.
The plan is to have the user enter a code A,B,C,N in a text box.
---------------------------------------------------
A = frmSubFormA
B = frmSubFormB
C = frmSubFormC
N = frmSubFormN
---------------------------------------------------
Depending on which code is entered in the text box, the relevant Sub form will appear.
txtCode = A
---------------------------------------------------
A = frmSubFormA
---------------------------------------------------
I tried using a simple (VISIBLE = TRUE/FALSE), bit of code but the link table I created for the orders, recorded an order in all of the sub form tables.
I know that it is possible to use SOURCEOBJECT in the VBA but don't know how to code it right, so that the correct Sub-form is used.
Any response would be helpful.