Hi,
I have been trying to get this update query to work. I am looking for any ideas? This query updates my History pending table with recent shipped history. There is data in this shipped history by store item table copy, but every time I run the query it updates 0 rows in History Pending. Here is my SQL if that helps?
UPDATE [DM-History-Pending] INNER JOIN [DM-ShipHistoryByStoreItem] ON ([DM-History-Pending].Store = [DM-ShipHistoryByStoreItem].Store) AND ([DM-History-Pending].Items = [DM-ShipHistoryByStoreItem].Item)
SET [DM-History-Pending].[30-Shipped] = IIf([DM-ShipHistoryByStoreItem]![30]>0,[DM-ShipHistoryByStoreItem]![30],Null), [DM-History-Pending].[60-Shipped] = IIf([DM-ShipHistoryByStoreItem]![60]>0,[DM-ShipHistoryByStoreItem]![60],Null), [DM-History-Pending].[90-Shipped] = IIf([DM-ShipHistoryByStoreItem]![90]>0,[DM-ShipHistoryByStoreItem]![90],Null), [DM-History-Pending].[120-Shipped] = IIf([DM-ShipHistoryByStoreItem]![120]>0,[DM-ShipHistoryByStoreItem]![120],Null), [DM-History-Pending].[150-Shipped] = IIf([DM-ShipHistoryByStoreItem]![150]>0,[DM-ShipHistoryByStoreItem]![150],Null), [DM-History-Pending].[180-Shipped] = IIf([DM-ShipHistoryByStoreItem]![180]>0,[DM-ShipHistoryByStoreItem]![180],Null);
This code used to work but I may have modified it to where it doesn't now. Thank you for any help.