G
Guest
Hi
I have 1 TABLE called "InventoryAdditions" which has a FIELD called "Quantity
I then have another TABLE called "Inventory" with a FIELD called "TotalAdded
What would be "Access Syntax" (I can do this in regular SQL but having trouble in Access) to
UPDATE the "TotalAdded" in the "Inventory" Table with the SUM of all the "Quantitys" in the "InventoryAdditions" for each specific item
I have tried this..
UPDATE Inventory SET TotalAdded = (Select SUM(InventoryAdditions.Quanity) FROM InventoryAdditions Where InventoryAdditions.ItemID = Inventory.ItemID
But this is not working & I can't figure out how to do it
Any help would be greatly appreciated
Thank you
Jef
(e-mail address removed)
I have 1 TABLE called "InventoryAdditions" which has a FIELD called "Quantity
I then have another TABLE called "Inventory" with a FIELD called "TotalAdded
What would be "Access Syntax" (I can do this in regular SQL but having trouble in Access) to
UPDATE the "TotalAdded" in the "Inventory" Table with the SUM of all the "Quantitys" in the "InventoryAdditions" for each specific item
I have tried this..
UPDATE Inventory SET TotalAdded = (Select SUM(InventoryAdditions.Quanity) FROM InventoryAdditions Where InventoryAdditions.ItemID = Inventory.ItemID
But this is not working & I can't figure out how to do it
Any help would be greatly appreciated
Thank you
Jef
(e-mail address removed)