[FONT="]Hey All,
I need a little help with one of my update queries.
Pretty much all I want to do is update one table (in Access 2007) based on the results from my pass-through query that pulls data from SQL Server.
Please look at my update query below:
[/FONT][FONT="]UPDATE
[SQL (2) Vendor cost export]
INNER JOIN
[Product Cost]
ON
([SQL (2) Vendor cost export].[Item id] = [Product Cost].Product_Id)
AND
([SQL (2) Vendor cost export].[Vendor id] = [Product Cost].Pharmacy)
SET [Product Cost].[Phamracy Product ID] = [SQL (2) Vendor cost export]![Vndr item id], [Product Cost].Cost = [SQL (2) Vendor cost export]![Std cost];
[SQL (2) Vendor cost export] is the pass through query that pulls data from SQL server and Product Cost is the table I am trying to update based on the results from pass-through query.
Access gives me an error message: "Operation must use an updatable query" when I try to run this.
Can you see any errors? Any help would be greatly appreciated.
Thanks
[/FONT]
I need a little help with one of my update queries.
Pretty much all I want to do is update one table (in Access 2007) based on the results from my pass-through query that pulls data from SQL Server.
Please look at my update query below:
[/FONT][FONT="]UPDATE
[SQL (2) Vendor cost export]
INNER JOIN
[Product Cost]
ON
([SQL (2) Vendor cost export].[Item id] = [Product Cost].Product_Id)
AND
([SQL (2) Vendor cost export].[Vendor id] = [Product Cost].Pharmacy)
SET [Product Cost].[Phamracy Product ID] = [SQL (2) Vendor cost export]![Vndr item id], [Product Cost].Cost = [SQL (2) Vendor cost export]![Std cost];
[SQL (2) Vendor cost export] is the pass through query that pulls data from SQL server and Product Cost is the table I am trying to update based on the results from pass-through query.
Access gives me an error message: "Operation must use an updatable query" when I try to run this.
Can you see any errors? Any help would be greatly appreciated.
Thanks
[/FONT]