Hi all,
I have tblEmployees as an employee list.
tblActions stores records of employee actions (many records for each employee).
In order to link the tables i need to enter the EmployeeID from tblEmployees into tblActions based on the "name" field. The name is unreliable but it will fill in 95% of them, the others I can fix manually.
Can someone point me towards a solution that will update table2 with employeeID's?
I have limited Access knowledge, but I am trying to update it using one as a DAO.recordset, but not sure if a UNION query would be more correct?
The first table looks like this:
tblEmployees:
EmpID, AgentName
1, Bob Jones
2, Phil McRackin
The second table should look like this, with ID's in place:
tblActions
name, ID
bob jones, 1
bob jones, 1
bob jones, 1
bob jones, 1
I will also be using this to update both tables with incoming actions, and employees.
I will be linking the tables based on the name, because that may change once in a while, but in the actions table there is no employeeID until I add it in.
Thanks!
I have tblEmployees as an employee list.
tblActions stores records of employee actions (many records for each employee).
In order to link the tables i need to enter the EmployeeID from tblEmployees into tblActions based on the "name" field. The name is unreliable but it will fill in 95% of them, the others I can fix manually.
Can someone point me towards a solution that will update table2 with employeeID's?
I have limited Access knowledge, but I am trying to update it using one as a DAO.recordset, but not sure if a UNION query would be more correct?
The first table looks like this:
tblEmployees:
EmpID, AgentName
1, Bob Jones
2, Phil McRackin
The second table should look like this, with ID's in place:
tblActions
name, ID
bob jones, 1
bob jones, 1
bob jones, 1
bob jones, 1
I will also be using this to update both tables with incoming actions, and employees.
I will be linking the tables based on the name, because that may change once in a while, but in the actions table there is no employeeID until I add it in.
Thanks!
Last edited: