Hi there!
I am designing a database that will essentially keep track of all of our companies jobs. Now, the way the old excel one works is you have for instance:
Job Number
Contract manager
Engineer
Senior Engineer
Basically multiple employees working on a job. These are entered each time a new job is created. Massive potential for wrong data being input...
The way I initially went about designing it was to create a table for all of the companies employees, another table for all the departments. You can create an employee and assign them to a department via a dropdown fed from the department table. When you create a job, you would fill in the contract manager, engineer and senior engineer form fields (via a drop down box feed from the employee table).
Now, I believe I have hit a problem. Each employee has an email assigned to them in the employee table. Now, when search through the jobs in a form, I need to display the contract manager, engineer and senior engineer's name, and their email address. The forms data source is from the MASTER table (job detail). I have tried a query for this, using a relationship between MASTER and EMPLOYEE, but because their is multiple fields linking to multiple employees, it doesn't seem to work. Name is the easy one as this is a field in the job table. Email though is stored in the employee table.
I cannot figure out how to pull through the employees email for the contract manager, engineer and senior engineer.
Do I need to create another table here containing each employees job assignment and query the job number against this table, rather than storing them on the master job table?
Current tables
MASTER (job list)
Job Number (primary key, unique number)
Contract Manager (drop down referencing the EMPLOYEE name built from a query)
Engineer (drop down referencing the EMPLOYEE name built from a query)
Senior Engineer (drop down referencing the EMPLOYEE name built from a query)
EMPLOYEE
Name (Manually typed in via form)
Department (drop down populated from query of DEPARTMENT table)
Email (manually typed in via form)
DEPARTMENT
Name (Manually typed in via form)
I hope i'm making sense here, and i've provided enough information...
And thanks for any help you can provide!