Let's say I have the following 2 tables (this is made up data served as example).
Table 1 contains employees info (Name and Departments). Table 2 track late clock-in time daily.
My task is to fill in Table 2 and occasionally update Table 1.
Since each employee is identified by Name and Departments, I want to merge these 2 fields into one single column. Then in Table 2 select that as lookup.
Important: I also want that any changes made to Table 1 (Name/Departments) is automatically reflected in Table 2.
The issue is: I cannot created a Relationship involving a calculated field in Access.
Is there a better way? I'm new to Access so any help is appreciated. Thank you very much.
Example below:
Table 1
EmployeeID | EmployeeName | Departments | NameAndDepartments (calculated from the other 2 fields) |
---|---|---|---|
1 | Ann | Sales | Ann from Sales |
2 | Bob | Marketing | Bob from Marketing |
3 | Charles | IT | Charles from IT |
Table 2
Instance | NameAndDepartments (lookup field to Table 1 - dropdown menu) | Late clock-in | Date |
---|---|---|---|
1 | Ann from Sales | 15 minutes | 24-04-2023 |
2 | Charles from IT | 5 minutes | 24-04-2023 |