D
David Whitaker
Hope this doesn't confuse you
I have got a field in a query named [type]
Its contents are always a 1,2, or 3
There are 2 other fields with the names of [gallons] and [trimgallons]
example (this is what the datasheet looks like)
type gallons trimgallons
2 25 5
1 10
3 21
1 12 18
1 90 3
Question?
How could you combine the following to get the results?
Gallons + trimgallons(if type =1) 'result=133
Gallons + trimgallons(if type =2) 'result=30
Gallons + trimgallons(if type =3) 'result=21
I have got a field in a query named [type]
Its contents are always a 1,2, or 3
There are 2 other fields with the names of [gallons] and [trimgallons]
example (this is what the datasheet looks like)
type gallons trimgallons
2 25 5
1 10
3 21
1 12 18
1 90 3
Question?
How could you combine the following to get the results?
Gallons + trimgallons(if type =1) 'result=133
Gallons + trimgallons(if type =2) 'result=30
Gallons + trimgallons(if type =3) 'result=21