jvhazelbaker
Programmer
I am trying to figure out a net bushel weight per silo per date taking into account usage and new receipts. So, this is what I'm doing.
First Query: Figures bushel weight per silo per day
net weight: =([gross wt]-[empty wt]/56)
Second Query: Figures actual bushel usage per silo
Third Query: Problem begins. Example below:
Date Silo1: iif([silo]=1,[net wt]-[actual bu usage],0)
4/1 1342.5
4/2 4534.6
4/3 3465.7
What I want is for the first date total and the second date total to add together to get x, then x to add to the third date total to get y and so on for infinity. However, I obviously can't add a field to itself without giving it some sort of identifier. So rather than builing down, I need to build across, but I can't figure out how to accomplish this since the dates and totals per silo will be infinite, so how do you name something that doesn't yet, but will at some point, exist?
First Query: Figures bushel weight per silo per day
net weight: =([gross wt]-[empty wt]/56)
Second Query: Figures actual bushel usage per silo
Third Query: Problem begins. Example below:
Date Silo1: iif([silo]=1,[net wt]-[actual bu usage],0)
4/1 1342.5
4/2 4534.6
4/3 3465.7
What I want is for the first date total and the second date total to add together to get x, then x to add to the third date total to get y and so on for infinity. However, I obviously can't add a field to itself without giving it some sort of identifier. So rather than builing down, I need to build across, but I can't figure out how to accomplish this since the dates and totals per silo will be infinite, so how do you name something that doesn't yet, but will at some point, exist?