Hello, I am new to this forum and have tried searching several different DB forums looking for a similarity to what I am attempting to do. I am a firefighter working on a project for my supervisor that will track our Employees shift exchanges. I have some knowledge in both access and SQL. I have created 3 tables 1 is Staff_Details which has all our staff listed. The other 2 tables are Trade_Off and Trade_Worked, they will be used with a form I will create later to allow a supervisor to enter the data for each exchange. This is what I have so far.
Table
Trade_Off
Fields
ID, Staff_Name, Date, Duration, Staff_Exchange
Table
Trade_Worked
Fields
ID, Staff_Exchange, Date, Duration, Staff_Name
Current set up Trade_Off table is filled out with all information, using Staff_Detail table as a look up for both Trade_Off.Staff_Name, and Trade_Off.Staff_Exchange fields. I would like to have the Trade_Worked.Staff_Exchange field automatically filled out based on what is entered in the Trade_Off.Staff_Exchange field. Previous attempts have resulted in displaying the Staff_Detail.PriKey field not the Staff_name, which is what I want.
Other attempts have ended in Key index errors when creating the relationships.
The second thing I am ultimately looking to accomplish is to track and update the Trade_Worked.Duration field as the Trade_Off.Duration is filled out linked to the Trade_Off.Staff_Name. This is to allow us to track the hours of the shift exchanges for each employee and verify remaining hours for each employee for each trade.
The initial Trade_Off will not have a date selected for the Trade_Worked table for repayment of the Exchange this will be added later when it has been identified.
I am open to any other options for accomplishing the same task if anyone has any thoughts. I can also provide any additional details if needed to understand my goal or what I have already done.
Paul