T
Thorson
I just set up a table and a series of queries to track straw inventory at
three different units. I would like my final query to display the number of
straws at each unit, but something is calculating incorrectly throughout my
queries.
My first query "qryStrawsUsed" looks at a table and counts the number of
straws used for each ID, it also gives the location it was used at.
My second query "qryStrawInventoryBull" sums the number of straws for each
ID at each unit from an inventory table.
The third and final query "qryStrawInventory" subtracts the number of
straws used for each ID from "qryStrawsUsed" from the inventory
"qryStrawInventoryBull".
My problem is that it isn't matching up the locations and subtracting the
straws correctly. For example, I have ID Bushwacker, Bushwacker has 330
straws at UnitDSAC and 400 at UnitURB, accourding to "qryStrawsUsed" 2 straws
were used at UnitDSAC. In the final query "qryStrawInventory" it subtracts
two from both UnitDSAC and UnitURB for the ID Bushwacker, instead of just two
from UnitDSAC.
If someone could help me out with this it would be great, let me know if I
need to clarify more.
Thanks.
three different units. I would like my final query to display the number of
straws at each unit, but something is calculating incorrectly throughout my
queries.
My first query "qryStrawsUsed" looks at a table and counts the number of
straws used for each ID, it also gives the location it was used at.
My second query "qryStrawInventoryBull" sums the number of straws for each
ID at each unit from an inventory table.
The third and final query "qryStrawInventory" subtracts the number of
straws used for each ID from "qryStrawsUsed" from the inventory
"qryStrawInventoryBull".
My problem is that it isn't matching up the locations and subtracting the
straws correctly. For example, I have ID Bushwacker, Bushwacker has 330
straws at UnitDSAC and 400 at UnitURB, accourding to "qryStrawsUsed" 2 straws
were used at UnitDSAC. In the final query "qryStrawInventory" it subtracts
two from both UnitDSAC and UnitURB for the ID Bushwacker, instead of just two
from UnitDSAC.
If someone could help me out with this it would be great, let me know if I
need to clarify more.
Thanks.