I have the following query:
SELECT Inventory.[Product Number], Inventory.[Make/Model], Inventory.[Stock Quantity], Requisition.Quantity, [Update Inventory].[New Quantity], [Check Stock].[Avaliable Quantity], [Check Stock]![Avaliable Quantity]+[Update Inventory]![New Quantity] AS [Net Quantity]
FROM ((Inventory INNER JOIN [Check Stock] ON Inventory.[Product Number]=[Check Stock].[Product Number]) INNER JOIN Requisition ON Inventory.[Product Number]=Requisition.[Product Number]) INNER JOIN [Update Inventory] ON Inventory.[Product Number]=[Update Inventory].[Product Number];
My problem is as follows:
I have an invenotry table, and i have an inventory update table used to add any new itmes that come in. i also have a requisition table.
I want to be able to implement the following formula:
initial stock quantity+new incoming quantity (for the day) - requisitions (for the day)
But with this query ever time it runs, the initial quantity is taken from the one that i set it on the first day. I made new incoming additions and some requisitions after that.
So can i somehow get the above formula to do this:
result 1 =initial stock quantity+new incoming quantity - requisitions
next time after updates
result2 = result 1 +new incoming quantity (for the day) - requisitions(for the day)
thankyou very much
SELECT Inventory.[Product Number], Inventory.[Make/Model], Inventory.[Stock Quantity], Requisition.Quantity, [Update Inventory].[New Quantity], [Check Stock].[Avaliable Quantity], [Check Stock]![Avaliable Quantity]+[Update Inventory]![New Quantity] AS [Net Quantity]
FROM ((Inventory INNER JOIN [Check Stock] ON Inventory.[Product Number]=[Check Stock].[Product Number]) INNER JOIN Requisition ON Inventory.[Product Number]=Requisition.[Product Number]) INNER JOIN [Update Inventory] ON Inventory.[Product Number]=[Update Inventory].[Product Number];
My problem is as follows:
I have an invenotry table, and i have an inventory update table used to add any new itmes that come in. i also have a requisition table.
I want to be able to implement the following formula:
initial stock quantity+new incoming quantity (for the day) - requisitions (for the day)
But with this query ever time it runs, the initial quantity is taken from the one that i set it on the first day. I made new incoming additions and some requisitions after that.
So can i somehow get the above formula to do this:
result 1 =initial stock quantity+new incoming quantity - requisitions
next time after updates
result2 = result 1 +new incoming quantity (for the day) - requisitions(for the day)
thankyou very much