Hello all, I'm after some advice on a query that updates a locally stored table with information from a linked SQL table.
I import some sales information into a table within access. I also have a employee table stored in SQL linked in this access database. In my imported sales data I link sales_id against the SQL reference table to obtain employee ID and update this local table - this is where it is causing issues.
I used to store the reference table locally and experienced no issues, after moving to SQL it's taking several minutes to run when running an update query. There are ~150k sales records stored locally and ~500 in the reference table.
If I change it to a make table query using the same link/criteria/fields it runs straight away.
I have checked indexes etc and can only assume that the difference is in how the two queries are executed - but I'm not sure how as both are joining on the same field in the same way.
Any advice would be appreciated.
Update
Make Table
I import some sales information into a table within access. I also have a employee table stored in SQL linked in this access database. In my imported sales data I link sales_id against the SQL reference table to obtain employee ID and update this local table - this is where it is causing issues.
I used to store the reference table locally and experienced no issues, after moving to SQL it's taking several minutes to run when running an update query. There are ~150k sales records stored locally and ~500 in the reference table.
If I change it to a make table query using the same link/criteria/fields it runs straight away.
I have checked indexes etc and can only assume that the difference is in how the two queries are executed - but I'm not sure how as both are joining on the same field in the same way.
Any advice would be appreciated.

Update
Code:
UPDATE sales
INNER JOIN employees ON sales.sales_id = employees.sales_id
SET sales.employee_id = [employees]![EmployeeID]
WHERE (((sales.sales_date) Between [employees]![effectiveuntil] And [employees]![effectivefrom]));
Make Table
Code:
SELECT sales.sales_date, employees.EmployeeID, sales.sales_id, sales.customer_number
INTO temp_test
FROM sales
INNER JOIN employees ON sales.sales_id = employees.sales_id
WHERE (((sales.sales_date) Between [employees]![effectiveuntil] And [employees]![effectivefrom]));