S
Skippy
I have 2 tables linked by a junction table in a many to
That's where you went wrong...
The Junction Table itself should be the Recordsource of
the subform
(not the other "one" side table).
That's not the correct design. Your junction table should
have TWO
fields, one of them linked to the left-side "one" table,
the other
linked to the "right". These two fields should be a
joint, two-field
Primary Key, but it is neither necessary nor beneficial
to combine
them into a single field!
I didn't explain myself well enough. They are 2 seperate
fields. I selected both simultaneously and hit the key
field button on the toolbar. They are as you said above.
Lets call the 2 forms ORDERS, and ITEMS. They have a many
to many relationship because most orders will have more
than 1 item, and most items will be in more than 1 order.
Typically in this situation you would have a Form based
on either of
the "One" side tables, with a Subform based on the
junction table. On
the Subform you would have a Combo Box using the
other "one" side
table as its RowSource, allowing you to pick the desired
ID.
Im not sure what you mean here. How would the junction
table subform load the entered data into the ITEMS table?
(assuming the main form was ORDERS)
I'm a newb, and though I've been studying Access for
several months on my own, I'm obviously missing something
fudamental here. Thanks again for your help.
-Skippy
many relationship. I am trying to make 2 forms, each
based on the 2 different tables, with a subform showing
related records from the other table.
That's where you went wrong...
In other words, I am trying to have the capability to
view and edit data from both sides of the relationship.
The problem is that when I enter data in the main and
subforms of either pair, it does not update the junction
table fields.
The Junction Table itself should be the Recordsource of
the subform
(not the other "one" side table).
The 2 fields in the junction table are combined into one
key field, if that helps. Individually, they are the
foreign key fields, for the key fields in their
respective tables as they should be.
That's not the correct design. Your junction table should
have TWO
fields, one of them linked to the left-side "one" table,
the other
linked to the "right". These two fields should be a
joint, two-field
Primary Key, but it is neither necessary nor beneficial
to combine
them into a single field!
I didn't explain myself well enough. They are 2 seperate
fields. I selected both simultaneously and hit the key
field button on the toolbar. They are as you said above.
Can anyone please give me a nudge in the right direction?
I'm a newb and not sure what part of Access I need to be
tackling to fix this problem.
Lets call the 2 forms ORDERS, and ITEMS. They have a many
to many relationship because most orders will have more
than 1 item, and most items will be in more than 1 order.
Typically in this situation you would have a Form based
on either of
the "One" side tables, with a Subform based on the
junction table. On
the Subform you would have a Combo Box using the
other "one" side
table as its RowSource, allowing you to pick the desired
ID.
Im not sure what you mean here. How would the junction
table subform load the entered data into the ITEMS table?
(assuming the main form was ORDERS)
I'm a newb, and though I've been studying Access for
several months on my own, I'm obviously missing something
fudamental here. Thanks again for your help.
-Skippy