G
Guest
I have a table that stores all inventory transactions. Each record shows
either a positive or negative quantity to add or delete inventory of specific
part numbers / operations / locations by date and type of transaction. By
totaling all transactions we know how much inventory we have completed
through each operation. My problem is the boss now wants to compare
inventory balances by month. So, I need end of month inventories for every
month. I can’t just sum the transaction quantities by month because I need
all transactions <= the end of the month date, not just those completed
during the month. In other words I need the sum of all transactions
<=8/31/04, <=9/30/04, <=10/31/04, <=11/30/04 etc. Is there some way I can do
this without writing a separate query for each month, combining them into one
query and adding a query with the most recent month each month?
either a positive or negative quantity to add or delete inventory of specific
part numbers / operations / locations by date and type of transaction. By
totaling all transactions we know how much inventory we have completed
through each operation. My problem is the boss now wants to compare
inventory balances by month. So, I need end of month inventories for every
month. I can’t just sum the transaction quantities by month because I need
all transactions <= the end of the month date, not just those completed
during the month. In other words I need the sum of all transactions
<=8/31/04, <=9/30/04, <=10/31/04, <=11/30/04 etc. Is there some way I can do
this without writing a separate query for each month, combining them into one
query and adding a query with the most recent month each month?