Dear All,
I am trying to update 1 table ("tblForecastFeed" from 2 'feeder' tables ("tblCustomerList" and "CLP Forecast Feed") but I think I'm doing something very wrong. This is the code I currently have:
The "CLP Forecast Feed" is a linked Excel table. I need instances of each "Item Code" against each "Customer" in the "tblForecastFeed", and the Update Query would update the "tblForecastFeed" with any changes/additions in the "CLP Forecast Feed" and the "tblCustomerList".
Does anyone know why this may not be working properly? I had a Update Warning box saying I was updating a couple of million rows! I guess it's something to do with updating one table from two tables, but I don't know how to get round that!
Many Thanks,
Nick
I am trying to update 1 table ("tblForecastFeed" from 2 'feeder' tables ("tblCustomerList" and "CLP Forecast Feed") but I think I'm doing something very wrong. This is the code I currently have:
Code:
UPDATE (tblCustomerList INNER JOIN tblForecastData ON tblCustomerList.Customer = tblForecastData.Customer) INNER JOIN [CLP Forecast Feed] ON tblForecastData.[Item Code] = [CLP Forecast Feed].[Item Code] SET tblForecastData.[Item Code] = [tblForecastData].[Item Code], tblCustomerList.Customer = [tblForecastData].[Customer];
The "CLP Forecast Feed" is a linked Excel table. I need instances of each "Item Code" against each "Customer" in the "tblForecastFeed", and the Update Query would update the "tblForecastFeed" with any changes/additions in the "CLP Forecast Feed" and the "tblCustomerList".
Does anyone know why this may not be working properly? I had a Update Warning box saying I was updating a couple of million rows! I guess it's something to do with updating one table from two tables, but I don't know how to get round that!
Many Thanks,
Nick