I am trying to create a query and a report that will produce a current month miles driven and YTD miles driven for a division. The problem is how do I calculate YTD miles driven when a vehicle is sold but I want to count the miles driven in the division's YTD total. I'm creating monthly total using two joined tables one contain Vehicle info including retirement date and division, the other table has the read date (always the first)and odometer reading. To get the current month I am selecting the two month using a two parameter queries then subtracting in third query which I then report from. When a vehicle is sold or transfered the next month odometer is then "0" and this creates a negative useage. I have looked everywhere to for a solution.
I would greatly appreciate any help that anyone can give.
I must say this is the most helpful site I visited everyone does a great job of exchanging information and helping us newbees out. Thank you all!!
I would greatly appreciate any help that anyone can give.
I must say this is the most helpful site I visited everyone does a great job of exchanging information and helping us newbees out. Thank you all!!