Hi
I have written a select query that works well and gives the correct reults. SQL below:
SELECT tblFactSalesAndStock.Line_Code, tblFactSalesAndStock.Week, tblLoadCoverBand.Cover_Band_Code
FROM tblLoadCoverBand INNER JOIN tblFactSalesAndStock ON (tblLoadCoverBand.Week = tblFactSalesAndStock.Week) AND (tblLoadCoverBand.Line_Code = tblFactSalesAndStock.Line_Code);
When I then change it to an update query it returns the correct number of records but there are no values in the field that needs to be updated.
UPDATE tblLoadCoverBand INNER JOIN tblFactSalesAndStock ON (tblLoadCoverBand.Week = tblFactSalesAndStock.Week) AND (tblLoadCoverBand.Line_Code = tblFactSalesAndStock.Line_Code) SET tblFactSalesAndStock.ClsBrchCovU_Band_Code = [tblLoadCoverBand].[Cover_Band_Code];
I have checked both of the source tables and the field properties are identical.
Am I missing something really obvious????
Thanks
David
I have written a select query that works well and gives the correct reults. SQL below:
SELECT tblFactSalesAndStock.Line_Code, tblFactSalesAndStock.Week, tblLoadCoverBand.Cover_Band_Code
FROM tblLoadCoverBand INNER JOIN tblFactSalesAndStock ON (tblLoadCoverBand.Week = tblFactSalesAndStock.Week) AND (tblLoadCoverBand.Line_Code = tblFactSalesAndStock.Line_Code);
When I then change it to an update query it returns the correct number of records but there are no values in the field that needs to be updated.
UPDATE tblLoadCoverBand INNER JOIN tblFactSalesAndStock ON (tblLoadCoverBand.Week = tblFactSalesAndStock.Week) AND (tblLoadCoverBand.Line_Code = tblFactSalesAndStock.Line_Code) SET tblFactSalesAndStock.ClsBrchCovU_Band_Code = [tblLoadCoverBand].[Cover_Band_Code];
I have checked both of the source tables and the field properties are identical.
Am I missing something really obvious????
Thanks
David