Hi.
I have what seems like it should be a beginner Access question. I have an extremely simple database for a magazine. It has a table of stories to be written, a table of people, and a table of roles those people can play (there are 3: author, photographer, and editor). There is a junction table between all three aforementioned tables to link them together.
I would like to have a form that allows me to cycle through the stories and enter relevant information. No problem when that info is in the Stories table. However, on this form, I would like a combo box that allows me to select from the people table and assign people to their various roles for each story. This should update the junction table with that persons role when it is chosen.
I quickly realized that to have the information available in the form, I'd need to modify its Control Source with a query of my own, rather than use the default Wizard-created Stories table as a Control Source. However, when I did that, I realized I had numerous results in the query for the same story (where, for example, I one result with story 1 and a role of photographer, then another result with story 1 again, with the assigned author). As I then cycled through the records on the form, I wasn't seeing each story, but rather each result from the query. I know, this is simple stuff, but I'm new to forms. If I take out the custom query, I lose that role information within the form.
Is my solution a different query, a different organization of the relationships/table structure in the database, the use of DLookup for the combo box, a form based on a different table, or some other method? I realized this may be an instance where a subform would help (show the junction table there), but ideally, I wanted to not show a subform, as this seems kind of cluttered to me. Does doing it the way I'm suggesting (in a combo box) add the requirement of a lot of background VBA magic?
Thank you for any help. Here is a snapshot of the relationships, and attached is the database with a bunch of stuff from the Stories table stripped out to just illustrate the point.
Writing Database.zip
![]()
-Dewey