B
Barry A&P
I have a form based on this query
Browse_All_Query
SELECT T_PartNumbers.PartNumberID, T_PartNumbers.PartNumber,
T_PartNumbers.Description, T_PartNumbers.CategoryID, IIf([CategoryID] In
(1,2,3,4,5),"Edit","") AS Edit, T_TempAdd.Quantity, *
FROM T_PartNumbers LEFT JOIN T_TempAdd ON T_PartNumbers.PartNumberID =
T_TempAdd.PartNumberID;
The form is a datasheet with PartNumberID, PartNumber, Description, and
T_TempAdd.Quantity, I use it with an append query to add items to a parts
order Table I would like to add a UnitsinStk field but when I add the the
inventory_totals_query I can not change the values in my T_TempAdd.Quantity.
Inventory_totals_query
SELECT T_InventoryTransactions.PartNumberID,
Sum(T_InventoryTransactions.UnitsOrdered) AS SumOfUnitsOrdered,
Sum(T_InventoryTransactions.UnitsReceived) AS SumOfUnitsReceived,
Sum(T_InventoryTransactions.UnitsSold) AS SumOfUnitsSold,
Sum(T_InventoryTransactions.UnitsShrinkage) AS SumOfUnitsShrinkage,
Sum(NZ([UnitsReceived])-nz([UnitsSold])-nz([unitsshrinkage])) AS UnitsinStk
FROM T_InventoryTransactions
GROUP BY T_InventoryTransactions.PartNumberID;
I have spent a little time researching un-updatable queries but have not
found an answer..
Any help would be greatly appreciated..
Barry
Browse_All_Query
SELECT T_PartNumbers.PartNumberID, T_PartNumbers.PartNumber,
T_PartNumbers.Description, T_PartNumbers.CategoryID, IIf([CategoryID] In
(1,2,3,4,5),"Edit","") AS Edit, T_TempAdd.Quantity, *
FROM T_PartNumbers LEFT JOIN T_TempAdd ON T_PartNumbers.PartNumberID =
T_TempAdd.PartNumberID;
The form is a datasheet with PartNumberID, PartNumber, Description, and
T_TempAdd.Quantity, I use it with an append query to add items to a parts
order Table I would like to add a UnitsinStk field but when I add the the
inventory_totals_query I can not change the values in my T_TempAdd.Quantity.
Inventory_totals_query
SELECT T_InventoryTransactions.PartNumberID,
Sum(T_InventoryTransactions.UnitsOrdered) AS SumOfUnitsOrdered,
Sum(T_InventoryTransactions.UnitsReceived) AS SumOfUnitsReceived,
Sum(T_InventoryTransactions.UnitsSold) AS SumOfUnitsSold,
Sum(T_InventoryTransactions.UnitsShrinkage) AS SumOfUnitsShrinkage,
Sum(NZ([UnitsReceived])-nz([UnitsSold])-nz([unitsshrinkage])) AS UnitsinStk
FROM T_InventoryTransactions
GROUP BY T_InventoryTransactions.PartNumberID;
I have spent a little time researching un-updatable queries but have not
found an answer..
Any help would be greatly appreciated..
Barry