I have an access database that stores a truck number, mileage, and time stamp of log on and off times. I would like to be able to create a report that displays the total miles driven per month for all units.
My first attempt grabbed the maximum and the minimum mileage values and then subtracted to find the difference. This is not accurate enough, about once a month users "fat finger" there mileage and submit an inaccurate value.
What I would like to do is just get the mileage submitted on the first day of the month and the last day. Can I perform a sort and somehow get the last result that meets a given criteria for each unit each month?
I'm using access in the design view.
Thanks in advance for any ideas or suggestions,
BRUMSHINE
My first attempt grabbed the maximum and the minimum mileage values and then subtracted to find the difference. This is not accurate enough, about once a month users "fat finger" there mileage and submit an inaccurate value.
What I would like to do is just get the mileage submitted on the first day of the month and the last day. Can I perform a sort and somehow get the last result that meets a given criteria for each unit each month?
I'm using access in the design view.
Thanks in advance for any ideas or suggestions,
BRUMSHINE