I'd like to describe a scenario involving 3 Tables / Forms and ask a few questions. I think the answers may involve VBA code, which I am still trying to learn. Here's the scenario:
TableA has 2 fields: PK field is populated with autonumbers which I will call PKA. The 2nd field is a text field which I will call TextA.
TableB has 2 fields: PK field is populated with autonumbers which I will call PKB. The 2nd field is a text field which I will call TextB.
TableAB is an intersection table with 3 fields: PKA, PKB and a text field which I will call TextAB.
Let's assume that the end user has poplulated TableA and TableB through the use of some simple forms: FormA and FormB. TableAB remains unpopulated at this point.
The end user wants to be able to do the following:
Start within FormA and select a particular record through the use of a combo box which shows the TextA entries.
Then go to FormAB (closing FormA at the same time) and have FormAB show the selected TextA entry previously selected from the FormA combo box.
If possible, FormAB would show TextA, a combo box for TextB (with records coming from TableB) and TextAB. A Save command button would be placed on the form.
The objective is to allow the end user to show the relationship(s) between TextA and TextB, but save the PKA associated with TextA and the PKB associated with TextB in TableAB through the use of FormAB.
Questions:
Does TableAB need to include additional fields for TextA and TextB? Or can we get by with just the PKA, PKB and TextAB fields?
Does FormAB need to show PKA and PKB (in addition to the user friendly fields TextA and TextB)?
Once the end user has shown what TextB record is associated with the TextA record (carried over from FormA) and possibly entered some text into the 3rd field (TextAB), how can we ensure that PKA, PKB and TextAB is saved in TableAB?
This scenario is beyond my capabilities right now, so any assistance would appreciated very much.
-- Wilderfan
TableA has 2 fields: PK field is populated with autonumbers which I will call PKA. The 2nd field is a text field which I will call TextA.
TableB has 2 fields: PK field is populated with autonumbers which I will call PKB. The 2nd field is a text field which I will call TextB.
TableAB is an intersection table with 3 fields: PKA, PKB and a text field which I will call TextAB.
Let's assume that the end user has poplulated TableA and TableB through the use of some simple forms: FormA and FormB. TableAB remains unpopulated at this point.
The end user wants to be able to do the following:
Start within FormA and select a particular record through the use of a combo box which shows the TextA entries.
Then go to FormAB (closing FormA at the same time) and have FormAB show the selected TextA entry previously selected from the FormA combo box.
If possible, FormAB would show TextA, a combo box for TextB (with records coming from TableB) and TextAB. A Save command button would be placed on the form.
The objective is to allow the end user to show the relationship(s) between TextA and TextB, but save the PKA associated with TextA and the PKB associated with TextB in TableAB through the use of FormAB.
Questions:
Does TableAB need to include additional fields for TextA and TextB? Or can we get by with just the PKA, PKB and TextAB fields?
Does FormAB need to show PKA and PKB (in addition to the user friendly fields TextA and TextB)?
Once the end user has shown what TextB record is associated with the TextA record (carried over from FormA) and possibly entered some text into the 3rd field (TextAB), how can we ensure that PKA, PKB and TextAB is saved in TableAB?
This scenario is beyond my capabilities right now, so any assistance would appreciated very much.
-- Wilderfan