![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am trying to automatically figure miles per gallon. I have several records (state line crossings) of which some contain fuel purchases for that state. I have created a trailing grand summary part which contains totals of fuel purchased (gallons, etc) which works fine. I have also created a total miles field which is a calculation of the EndingMileage-StartingMileage fields. The AverageMPG field contains a calculation of TotalGallons/TotalMiles which also works fine. Here is the problem. If I enter a fuel purchase in the first record only, it places the correct MPG in the AverageMPG field. If I do not enter a purchase in the first record but enter purchases in other records it enters a ? in the field. If I enter a purchase in the first record and also other records, it enters the AverageMPG as if the first record was the only fuel purchased thereby ignoring the other fuel purchases. Fields... TotalMiles Calculation EndingMileage-BeginningMileage TotalGallons Summary =Total of FuelGallons (running) AverageMPG Calculation Unstored =TotalMiles/TotalGallons |
![]() |
| Thread Tools | |
| Display Modes | |
| |