T
Tara
Hello,
How would I write a formula that uses information from a different line in
the query? For example, I have 4 fields (a,b,c,tot):
a b c tot
10 250 0 =
20 250 50 = + [c]
30 250 100 = + (what c is equal to in the above line)
I've tried to make my formula look something like this:
IIF([a]=10;; IFF([a]=20;+[c];IFF([a]=30;+[c]+([c]=([a]=20));0)))
By using this, I am missing some of my calcuations and, in this example, I
would be short 50.
I have many lines, and the [tot] should be the result of the above line plus
[c]. If there is an easier way to do this than the way I am trying, then
please let me know.
Thanks!
Tara.
How would I write a formula that uses information from a different line in
the query? For example, I have 4 fields (a,b,c,tot):
a b c tot
10 250 0 =
20 250 50 = + [c]
30 250 100 = + (what c is equal to in the above line)
I've tried to make my formula look something like this:
IIF([a]=10;; IFF([a]=20;+[c];IFF([a]=30;+[c]+([c]=([a]=20));0)))
By using this, I am missing some of my calcuations and, in this example, I
would be short 50.
I have many lines, and the [tot] should be the result of the above line plus
[c]. If there is an easier way to do this than the way I am trying, then
please let me know.
Thanks!
Tara.