Hello, I'm using Access 2013. I need to ask for help with my database design. I'm just a notch above novice, so please bear with me.
I've created a movie collection database, and it works to my satisfaction. I successfully created a junction table, and set up a many-to-many relationship for actors. I created a form and subform. The subform is for actors, and it works properly.
Once I finished the subform, I considered my database to be finished. Now, I am experimenting, for the purpose of learning more about database design. So, I decided to set up a relationship for directors. With the original database, I just had a plain text box where I enter the director's name.
With the second (experimental) database, I created a table just for directors. The table's fields are:
tblDirectors
DirectorID
DirectorLastName
DirectorFirstName
DirectorFullName (which is a calculated field [DirectorLastName] & ", " & [DirectorFirstName)
I know I could create a combo box, which I could use to choose the director's name. I've done that (after creating a query for Director's Full Name), and it worked.
But here's where I need help: I want to be able to select more than one director's name, in the event a movie has more than one director. For example, Monty Python and the Holy Grail has two directors, Terry Gilliam and Terry Jones.
I added a DirectorID field to my junction table.
I tried creating one main subform with MovieID, ActorID, DirectorID, DirectorFullName, and ActorFullName. I set the form to Continuous.
At this point, I need help. Not every movie will have more than one director. What is happening, whenever I enter data into the subform, is once I enter the DirectorID and the director's name appears in the first record, if I continue to add actors' names but no more directors, I get the following message:
"The Microsoft Access database engine cannot find a record in the table "tblDirectors" with key matching field(s) DirectorID."
So, do I create a separate subform just for directors? Can I keep the directors in the one subform? If I can, then what tweaking do I have to do to the database to enable this?
What is the most practical way of enabling the entry of both multiple actors, and multiple directors?
I'm attaching a copy in .zip format of my database, if anyone wants to take a look at it. (At least, I'm going to try to attach it.)
Thank you for any help you care to give. Hopefully it's just a minor tweak that I'm just overlooking due to my lack of experience. Warren Page
director_test_1.zip