Hi,
I'm a novice to al things access and know very little about sql & vba, so sorry If i dont make sense or confuse matters more.
I have this code in a select query:
I want to turn this into an update query to update a new table lets say "ClosestTable".
Any help would be much appreciated.
I'm a novice to al things access and know very little about sql & vba, so sorry If i dont make sense or confuse matters more.
I have this code in a select query:
Code:
SELECT TOP 10 Matrix_Export.[Departure Site], Matrix_Export.[Destination Site] AS [Store ID], Customers.CUSTNAME AS [Store Name], Round([Seconds]/3600,2) AS Hours, Matrix_Export.KMs
FROM Matrix_Export INNER JOIN Customers ON Matrix_Export.[Destination Site] = Customers.CUSTID
WHERE (((Matrix_Export.[Departure Site])=[Forms]![Top10 Closest]![Depart]) AND ((Matrix_Export.[Destination Site]) Like "S202*" Or (Matrix_Export.[Destination Site]) Like "S200*" Or (Matrix_Export.[Destination Site]) Like "D*") AND ((Matrix_Export.KMs)>0))
ORDER BY Matrix_Export.KMs;
I want to turn this into an update query to update a new table lets say "ClosestTable".
Any help would be much appreciated.