G
Guest
The DB is being created in Access 2000 and is a First Aid trainer DB; each trainer has 1-6 roles and each role has many skills. I want to put the list boxes in a subform on the main trainer form and when a role is selected in the first list box, the appropriate skills to be selected in the second box (the role part could even be a combo box as there only has to be 1 selection at a time) (the skills list is the same all the time but the selections will differ depending on which role is picked).
My theory for a solution was to create a TrainerRoleID which is TrainerID and RoleID combined (e.g. TrainerID=2 & RoleID=3 ---- TrainerroleID=23) but I do not know how to have the DB automatically create this for me using just the list boxes or how to incorporate it once its done. Any help would be much appreciated.
TABLES
Key=K
ROLES:-Role ID, Roles SKILLS:-Skill ID, Skills TRJ:-TrainerRoleID, TrainerID, Skill ID TSJ:-TrainerID, TrainerRoleID, Skills ID TRAINER(mainform):-TrainerID
RELATIONSHIPS
00= many
[Role ID] 1----00 [TRJ.Role ID] [Skills ID] 1----00 [TSJ.Skills ID] [TrainerRoleID] 1----00 [TSJ.TrainerRoleID] [Trainer ID] 1----00 [TRJ.Trainer ID]
[Trainer ID] 1----1[TSJ.Trainer ID]
My theory for a solution was to create a TrainerRoleID which is TrainerID and RoleID combined (e.g. TrainerID=2 & RoleID=3 ---- TrainerroleID=23) but I do not know how to have the DB automatically create this for me using just the list boxes or how to incorporate it once its done. Any help would be much appreciated.
TABLES
Key=K
ROLES:-Role ID, Roles SKILLS:-Skill ID, Skills TRJ:-TrainerRoleID, TrainerID, Skill ID TSJ:-TrainerID, TrainerRoleID, Skills ID TRAINER(mainform):-TrainerID
RELATIONSHIPS
00= many
[Role ID] 1----00 [TRJ.Role ID] [Skills ID] 1----00 [TSJ.Skills ID] [TrainerRoleID] 1----00 [TSJ.TrainerRoleID] [Trainer ID] 1----00 [TRJ.Trainer ID]
[Trainer ID] 1----1[TSJ.Trainer ID]