DarrenBoyer
IS-IT--Management
I have three tables Customer, Vehicles, and Employees.
Each customer has an Sales Consultant. This is an EmpID field in the Customer's table.
Each Vehicle was sold by a Sales Consultant. Sales Consultant field name = EmpID in the Vehicles table.
After importing a few thousand records I have several Customer's who have the default Sales Consultant "444" as the value in the Customer's table. This value is incorrect in many cases. The value should be the most recent EmpID. (The last rep to sell the customer a vehicle.)
What I would like to have is a query to view the customers where the Sales Consultant Value is 444 and the most recent transaction or vehicle sold was sold by an Active Employee. I would like the CustomerID value to be updateable so I can change it to the active Sales Consultant.
If someone could offer some direction I would be most grateful. If I could convert your suggestion to an update query and update one active employee at a time that would be fantastic.
Each customer has an Sales Consultant. This is an EmpID field in the Customer's table.
Each Vehicle was sold by a Sales Consultant. Sales Consultant field name = EmpID in the Vehicles table.
After importing a few thousand records I have several Customer's who have the default Sales Consultant "444" as the value in the Customer's table. This value is incorrect in many cases. The value should be the most recent EmpID. (The last rep to sell the customer a vehicle.)
What I would like to have is a query to view the customers where the Sales Consultant Value is 444 and the most recent transaction or vehicle sold was sold by an Active Employee. I would like the CustomerID value to be updateable so I can change it to the active Sales Consultant.
If someone could offer some direction I would be most grateful. If I could convert your suggestion to an update query and update one active employee at a time that would be fantastic.