Hi listers,
yes, it's newbie time...this is no doubt an incredibly dumb question, but the problem has me stumped, and I couldn't find anything like it in the archives.
The large problem: how to link to a table that has dual primary keys.
The details: I am dealing with 4 tables: tblIncidents, tblActions, tblPersonnel, and tblActionPersonnel. In tblIncidents, the primary key is IncidentID. In tblActions, it's a double key of IncidentID and ActionID, since a unique incident may have multiple actions. There is a many-many relationship between tblActions and tblActionPersonnel, since any action can have multiple people working on it, and one person can work on many different actions. Sooooo...I set up a "link" table (tblActionPersonnel) with primary key ActionPersID (autonumber)and PersonnelID (number) and IncidentID and ActionID.
My question is...how do I handle the double-primary key feature of tblACtions when I try to establish a link to tblActionPers? I need to treat the dual key as a single one in order to link the tables correctly...right?
I would appreciate any suggestions...(even the ones that start out with, "Dear Idiot..."
thanks!
J
yes, it's newbie time...this is no doubt an incredibly dumb question, but the problem has me stumped, and I couldn't find anything like it in the archives.
The large problem: how to link to a table that has dual primary keys.
The details: I am dealing with 4 tables: tblIncidents, tblActions, tblPersonnel, and tblActionPersonnel. In tblIncidents, the primary key is IncidentID. In tblActions, it's a double key of IncidentID and ActionID, since a unique incident may have multiple actions. There is a many-many relationship between tblActions and tblActionPersonnel, since any action can have multiple people working on it, and one person can work on many different actions. Sooooo...I set up a "link" table (tblActionPersonnel) with primary key ActionPersID (autonumber)and PersonnelID (number) and IncidentID and ActionID.
My question is...how do I handle the double-primary key feature of tblACtions when I try to establish a link to tblActionPers? I need to treat the dual key as a single one in order to link the tables correctly...right?
I would appreciate any suggestions...(even the ones that start out with, "Dear Idiot..."
thanks!
J