I am starting this issue fresh, because I have tried many things. This is a car application. Track costs associated with many cars. Main form is cars. Subform is car costs. Any time someone enters in a cost type of gas. they enter in mileage. If it isn't gas, they don't enter it in. What I need to do is have an invisible field in the source data for car costs that will capture the previous mileage recorded. It would look like this for a car numbered car 1
Cost Date - Cost Type - Cost - mileage - previous mileage
1/1/01 - gas - $32.00 - 10,100 - 0
2/15/01 - oil change - $40.00 - (null) - 10,100
2/28/01 - gas - $34.99 - 13,258 - 10,100
3/12/01 - body work - $515.00 - (null) - 13,258
Make sense?
Don't ask me why they calculate it this way, but if they run a month of costs, they want the cost per mile, and they need the mileage that would come from the previous month's gas cost, because that mileage was the time at fill up, so difference needs to be figured into the cost for the next month.
Any help would be great.
Thanks!
misscrf
It is never too late to become what you could have been ~ George Eliot
Cost Date - Cost Type - Cost - mileage - previous mileage
1/1/01 - gas - $32.00 - 10,100 - 0
2/15/01 - oil change - $40.00 - (null) - 10,100
2/28/01 - gas - $34.99 - 13,258 - 10,100
3/12/01 - body work - $515.00 - (null) - 13,258
Make sense?
Don't ask me why they calculate it this way, but if they run a month of costs, they want the cost per mile, and they need the mileage that would come from the previous month's gas cost, because that mileage was the time at fill up, so difference needs to be figured into the cost for the next month.
Any help would be great.
Thanks!
misscrf
It is never too late to become what you could have been ~ George Eliot