G
Guest
Thanks in advanc
I am attempting to set up a fleet database
One of the issues that I am having is that the workers sign the vehicle out in the morning, when they return at the end of the day they are suppost to enter in the Date, Mileage(at the end of the day), and which car they used
What I need to be able to do in my query is to have the date go back to the last day that mileage was entered and subtract the previous days mileage (last day used) from the next date to give actual milage driven on that particular day. I have tried date -1 however the problem is that the cars don't get signed out every day so when it runs the query it finds a "0" value on many of the days which screws things up. Anyone know of a database example that one could download which might help me along
The way that my data is structured in the table is as follows
Vehicle Date Mileag
1234 02/17/04 10,10
1234 02/16/04 10,00
1234 02/10/04 9,984
I am attempting to set up a fleet database
One of the issues that I am having is that the workers sign the vehicle out in the morning, when they return at the end of the day they are suppost to enter in the Date, Mileage(at the end of the day), and which car they used
What I need to be able to do in my query is to have the date go back to the last day that mileage was entered and subtract the previous days mileage (last day used) from the next date to give actual milage driven on that particular day. I have tried date -1 however the problem is that the cars don't get signed out every day so when it runs the query it finds a "0" value on many of the days which screws things up. Anyone know of a database example that one could download which might help me along
The way that my data is structured in the table is as follows
Vehicle Date Mileag
1234 02/17/04 10,10
1234 02/16/04 10,00
1234 02/10/04 9,984