N
nybaseball22
I might be getting too technical for my level, but here is what I am
trying to do. I want to sum amounts from a query that is not the
source for my form. I have the sum working, but I want to break it
down. I am trying to sum the numbers that are less than the date in
the date field of my form. Here is what I have so far, courtesy of
help I received in this group:
=IIf([Car] Is Not Null,IIf([Car]="1",DSum("[Miles on Previous
Tank]","AutosGasStats1")/DSum("[Gallons
Pumped]","AutosGasStats1"),DSum("[Miles on Previous
Tank]","AutosGasStats2")/DSum("[Gallons Pumped]","AutosGasStats2")),"N/
A")
This is working on my form for the total amount in my query. Can I
break it down so it only sums the amounts with dates less than the
date on my form (Field name is [Date] in form and query)?
Thanks for the help.
trying to do. I want to sum amounts from a query that is not the
source for my form. I have the sum working, but I want to break it
down. I am trying to sum the numbers that are less than the date in
the date field of my form. Here is what I have so far, courtesy of
help I received in this group:
=IIf([Car] Is Not Null,IIf([Car]="1",DSum("[Miles on Previous
Tank]","AutosGasStats1")/DSum("[Gallons
Pumped]","AutosGasStats1"),DSum("[Miles on Previous
Tank]","AutosGasStats2")/DSum("[Gallons Pumped]","AutosGasStats2")),"N/
A")
This is working on my form for the total amount in my query. Can I
break it down so it only sums the amounts with dates less than the
date on my form (Field name is [Date] in form and query)?
Thanks for the help.