
Originally Posted by
June7
Correct, calculated field cannot be primary key. The combination of EmpID, Date, task code (not hours) should be unique. This can be enforced by setting the three fields as a compound index. This table does not need primary key unless it has a related table that needs foreign key.
Do you have a table of Employees? This would have a unique record for each employee.
Do you have a table of tasks? This would have unique record for each task.
Then you should have a junction table that has records to associate employees with tasks and the hours for each task. This table would use EmpID and TaskID as foreign keys.