R
Ryan Langton
I'm having some trouble wrapping my head around Form design for Many-To-One
relationships. For example, say I have an Item table and an ItemGroup
table. I want to design a form that has every detail for the Item (ItemID,
ItemName, ItemQuantity, etc). This form also needs to include a drop-down
box that allows me to select an Item Group, and then shows me the details of
that item group (and allows editing - ItemGroupName, ItemGroupDescription,
etc).
I've tried setting my recordsouce for the form to a Select that includes a
join between the tables Item and ItemGroup. This doesn't work because it
won't allow me to edit the data fields for ItemGroup. I'm trying now to
just have Item on the main form, and then use a subform (with invisible
borders so it appears to be on the same form) for ItemGroup. This, however,
is creating a new record in ItemGroup every time I try to select a group
from the combo-box. This is understandable though because when the form
loads the Item does not belong to an ItemGroup so I imagine the subform is
set to a new record?
I'm guessing this is a common design issue and hope somebody can nudge me in
the right direction
Thanks,
Ryan
relationships. For example, say I have an Item table and an ItemGroup
table. I want to design a form that has every detail for the Item (ItemID,
ItemName, ItemQuantity, etc). This form also needs to include a drop-down
box that allows me to select an Item Group, and then shows me the details of
that item group (and allows editing - ItemGroupName, ItemGroupDescription,
etc).
I've tried setting my recordsouce for the form to a Select that includes a
join between the tables Item and ItemGroup. This doesn't work because it
won't allow me to edit the data fields for ItemGroup. I'm trying now to
just have Item on the main form, and then use a subform (with invisible
borders so it appears to be on the same form) for ItemGroup. This, however,
is creating a new record in ItemGroup every time I try to select a group
from the combo-box. This is understandable though because when the form
loads the Item does not belong to an ItemGroup so I imagine the subform is
set to a new record?
I'm guessing this is a common design issue and hope somebody can nudge me in
the right direction
Thanks,
Ryan