T
T. Hulot
Hello, I'm using Access 2003 and am a novice.
I'm creating a very simple (I hope) relational DVD collection
database, and am encountering a problem when I add a third table and
try to join it to the other tables.
Let me show you what my three tables consist of, before I explain the
problem.
Table 1 (Main):
MovieID (Primary Key)
Title
Director
Running Time
Location
Comments
Table 2 (Actors):
MovieID
ActorID (Primary Key)
Last Name
First Name
Table 3 (Genre):
MovieID
GenreID (Primary Key)
Genre
(Genre is movie type, such as Drama, Comedy, Foreign, etc.)
My goal is to have a repeating panel for the Actors, so I can type in
an unlimited number of Actors' names per record.
In addition, I want to enter an unlimited number of genres to a
record. (For example, Spaceballs is both a comedy and science
fiction. Star Wars is science fiction, adventure, and fantasy.)
I want to be able to delete a record. As I understand things, when
you create a relationship, you use the Enforce Integrity/Delete
Cascade option for this.
I successfully joined the first two tables via MovieID, and
successfully created a form with a subform for Actors. I've found no
problems yet with that form. I can add actors' names, and can delete
entire records via the Delete Cascade option.
The problem arises when I try to incorporate the GENRE table. I've
tried joining it to the MovieID field in Table 1, but I'm clearly not
joining the right things together, because when I use the Form Wizard,
it doesn't let me create a subform.
So, I'm not 100% sure I created Table 3 correctly. Did I select the
proper primary key?
Should I be doing the joining differently?
If you need further information from me, please let me know. I'm not
sure if I provided enough details to analyze the problem.
Also, please keep in mind that I am somewhat of a novice. Thank you
for your assistance.
I'm creating a very simple (I hope) relational DVD collection
database, and am encountering a problem when I add a third table and
try to join it to the other tables.
Let me show you what my three tables consist of, before I explain the
problem.
Table 1 (Main):
MovieID (Primary Key)
Title
Director
Running Time
Location
Comments
Table 2 (Actors):
MovieID
ActorID (Primary Key)
Last Name
First Name
Table 3 (Genre):
MovieID
GenreID (Primary Key)
Genre
(Genre is movie type, such as Drama, Comedy, Foreign, etc.)
My goal is to have a repeating panel for the Actors, so I can type in
an unlimited number of Actors' names per record.
In addition, I want to enter an unlimited number of genres to a
record. (For example, Spaceballs is both a comedy and science
fiction. Star Wars is science fiction, adventure, and fantasy.)
I want to be able to delete a record. As I understand things, when
you create a relationship, you use the Enforce Integrity/Delete
Cascade option for this.
I successfully joined the first two tables via MovieID, and
successfully created a form with a subform for Actors. I've found no
problems yet with that form. I can add actors' names, and can delete
entire records via the Delete Cascade option.
The problem arises when I try to incorporate the GENRE table. I've
tried joining it to the MovieID field in Table 1, but I'm clearly not
joining the right things together, because when I use the Form Wizard,
it doesn't let me create a subform.
So, I'm not 100% sure I created Table 3 correctly. Did I select the
proper primary key?
Should I be doing the joining differently?
If you need further information from me, please let me know. I'm not
sure if I provided enough details to analyze the problem.
Also, please keep in mind that I am somewhat of a novice. Thank you
for your assistance.