ledgerr.rob
Registered User.
- Local time
- Today, 08:52
- Joined
- Jun 3, 2012
- Messages
- 68
Forum,
Access 2013
windows 7
I am working with fueling up cars. I have a table tblFuelEntry in which data associated with fueling up a car is entered. Information such as Fuel date/time, tankMiles, Gallons, CarID, GasStationID are all entered. In my qryMPG I calculate the MPG for each fill up. Here in lies my problem. The MPG that is calculated is actually indicative of the previous fill-up's gas station for that car.
How can I tell the computer to calculate the MPG and then associate that value with the previous gas station used to fill-up that car?
I've been playing around with the Date/Time serial values as I am guessing I could use those values to select on as the fill-ups aren't always entered in ascending date order...
I would appreciate any direction that may be offered in this endeavor.
thanks,
rob
Access 2013
windows 7
I am working with fueling up cars. I have a table tblFuelEntry in which data associated with fueling up a car is entered. Information such as Fuel date/time, tankMiles, Gallons, CarID, GasStationID are all entered. In my qryMPG I calculate the MPG for each fill up. Here in lies my problem. The MPG that is calculated is actually indicative of the previous fill-up's gas station for that car.
How can I tell the computer to calculate the MPG and then associate that value with the previous gas station used to fill-up that car?
I've been playing around with the Date/Time serial values as I am guessing I could use those values to select on as the fill-ups aren't always entered in ascending date order...
I would appreciate any direction that may be offered in this endeavor.
thanks,
rob