F
Fran B.
I am using Access as a front-end to an SQL database. I need to be able to
prevent having duplicate keys without using a composite primary key.
I have a table that allows an employee to have multiple skill sets:
SkillID - as my primary unique ID field
EmpName - relates back to Employee table
Skill - points to table of valid skill sets
I can validate the values in EmpName and Skill, either of which can occur in
this table 'many' times. However, I want to make the combination value of
EmpName + Skill unique. This could be done by making them a composite
primary key but that is causing me other problems.
Example data:
Key EmpName Skill
1 Joe Blow Cobol Programming
2 Joe Blow DBA
3 Sam Smith DBA
It shouldn't let me add another:
4 Sam Smith DBA
I appreciate any help you can offer.
prevent having duplicate keys without using a composite primary key.
I have a table that allows an employee to have multiple skill sets:
SkillID - as my primary unique ID field
EmpName - relates back to Employee table
Skill - points to table of valid skill sets
I can validate the values in EmpName and Skill, either of which can occur in
this table 'many' times. However, I want to make the combination value of
EmpName + Skill unique. This could be done by making them a composite
primary key but that is causing me other problems.
Example data:
Key EmpName Skill
1 Joe Blow Cobol Programming
2 Joe Blow DBA
3 Sam Smith DBA
It shouldn't let me add another:
4 Sam Smith DBA
I appreciate any help you can offer.