M
Mike
I have a table that is composed of an ID and two foreign keys. This table is
used to relate two other tables.
I'm using a dataview to display the data. The data can be edited, including
changed, deleted and added.
How should I set up the dataview columns so the user sees the choices from
the two tables, but the third table (with the foreign keys) is filled in
with the ID's from the two tables?
Example tables:
tbOne [OneID, OneDataField]
tbTwo [TwoID, TwoDataField]
tbThree [ThreeID, OneID, TwoID]
I want the user to see OneDataField and TwoDataField in the dataview. If the
value of OneDataField is not present in tbOne, then it needs to be added to
tbOne. If the value of TwoDataField is not present in tbTwo, then it needs
to be added to tbTwo. Finally, the ID for OneDataField and TwoDataField
needs to be inserted in a new row in tbThree.
I'm pretty sure I can do this - I just don't know how.
Thanks so much for your help.
Mike
used to relate two other tables.
I'm using a dataview to display the data. The data can be edited, including
changed, deleted and added.
How should I set up the dataview columns so the user sees the choices from
the two tables, but the third table (with the foreign keys) is filled in
with the ID's from the two tables?
Example tables:
tbOne [OneID, OneDataField]
tbTwo [TwoID, TwoDataField]
tbThree [ThreeID, OneID, TwoID]
I want the user to see OneDataField and TwoDataField in the dataview. If the
value of OneDataField is not present in tbOne, then it needs to be added to
tbOne. If the value of TwoDataField is not present in tbTwo, then it needs
to be added to tbTwo. Finally, the ID for OneDataField and TwoDataField
needs to be inserted in a new row in tbThree.
I'm pretty sure I can do this - I just don't know how.
Thanks so much for your help.
Mike