I have one table Employees that contains the EmployeeID (PK), Location & Department fields. All this information is imported in from another Dbase so it comes in like below:
John Doe, 1, 13
As the Location and Department comes in as numbers that are programmed in the other database application i have created another two tables Location and Department which lists the relevant locations and departments and their corresponding codes like below
Locations
1 Ireland
2 UK
Departments
13 Sales
15 Management
I have another table Details where i would like to record data for these employees so i have the PK EmployeeID within Table Employees referencing the FK EmployeeID within Table Details. From this setup, i can create a combo which can select from all the employees.
Is it possible that when a user selects an employee, that on afterupdate, the selection will check what location and department that employee record has from the Employees Table (e.g. 1, 13) and then get the correct name from Departments Table to show the user on the form (e.g. Ireland, Sales) and then record (e.g. 1, 13) in the Details Table. Can i somehow link the Employees Table with the Locations and Departments table so it will bring back the value for the user automatically?
John Doe, 1, 13
As the Location and Department comes in as numbers that are programmed in the other database application i have created another two tables Location and Department which lists the relevant locations and departments and their corresponding codes like below
Locations
1 Ireland
2 UK
Departments
13 Sales
15 Management
I have another table Details where i would like to record data for these employees so i have the PK EmployeeID within Table Employees referencing the FK EmployeeID within Table Details. From this setup, i can create a combo which can select from all the employees.
Is it possible that when a user selects an employee, that on afterupdate, the selection will check what location and department that employee record has from the Employees Table (e.g. 1, 13) and then get the correct name from Departments Table to show the user on the form (e.g. Ireland, Sales) and then record (e.g. 1, 13) in the Details Table. Can i somehow link the Employees Table with the Locations and Departments table so it will bring back the value for the user automatically?