OK, I have a query that pulls data from 2 tables. The first table (let’s call it Table A) has employee information (employee name, job title, ID#, etc.). The second table (Table B) has information on training courses that employees have taken.
So my query pulls the latest employee information from Table A and matches with training records from Table B. If a new employee comes onboard he/she appears in the query with no training records. The issue I’m having is that in the design of Table A (done years ago by others) the “Employee Name” field includes the employee’s ID# (for example: “John Doe – 56789”).
And when an employee gets promoted or moves to another division in the agency, his/her employee ID# changes (agency policy). So when I run my query, if an employee has been promoted, access recognizes him/her as a new employee and the query returns the employee’s name with no training records. What I need is to somehow query only “name” portion of the Employee Name field so that the query will return the correct training records for the employee.
Thank you in advance.
So my query pulls the latest employee information from Table A and matches with training records from Table B. If a new employee comes onboard he/she appears in the query with no training records. The issue I’m having is that in the design of Table A (done years ago by others) the “Employee Name” field includes the employee’s ID# (for example: “John Doe – 56789”).
And when an employee gets promoted or moves to another division in the agency, his/her employee ID# changes (agency policy). So when I run my query, if an employee has been promoted, access recognizes him/her as a new employee and the query returns the employee’s name with no training records. What I need is to somehow query only “name” portion of the Employee Name field so that the query will return the correct training records for the employee.
Thank you in advance.