S
smartin
Greets All,
The database at hand is a time-tracking tool to facilitate logging hours
spent doing activities for work projects.
Projects have various activities; Activities can be associated with
various projects. To model this I have three tables: Projects,
Activities, and a junction table ProjAct, which consists of the PKs from
the other two tables.
My question is how to create a form to manage the associations?
The Activities list is relatively static, while the Projects list will
grow over time. So, I have designed a form based on Projects, with a
subform based on ProjAct. The subform is bound to a query that fetches a
description from Activities so the user can see activities associated
with the selected project.
This is where I'm stuck: I would like the user to see /all available/
activities and select the ones they wish to associate with the project.
I'm thinking maybe a multi-select listbox or list of checkboxes. Once
they have completed the selection, click a "commit" button and update
the junction table.
I'm confident I can handle coding to make the "commit" work, but pretty
fuzzy on what to do in the subform as far as what control to use. Maybe
a subform is not the answer at all? Has anyone been down this road?
Your ideas are appreciated.
The database at hand is a time-tracking tool to facilitate logging hours
spent doing activities for work projects.
Projects have various activities; Activities can be associated with
various projects. To model this I have three tables: Projects,
Activities, and a junction table ProjAct, which consists of the PKs from
the other two tables.
My question is how to create a form to manage the associations?
The Activities list is relatively static, while the Projects list will
grow over time. So, I have designed a form based on Projects, with a
subform based on ProjAct. The subform is bound to a query that fetches a
description from Activities so the user can see activities associated
with the selected project.
This is where I'm stuck: I would like the user to see /all available/
activities and select the ones they wish to associate with the project.
I'm thinking maybe a multi-select listbox or list of checkboxes. Once
they have completed the selection, click a "commit" button and update
the junction table.
I'm confident I can handle coding to make the "commit" work, but pretty
fuzzy on what to do in the subform as far as what control to use. Maybe
a subform is not the answer at all? Has anyone been down this road?
Your ideas are appreciated.