T
Tim from TNTCSLLC
I am working with a database designed to track vehicle usage, milage, and
service. I want to be able to have it prefill the LAST FILL block with the
vehicles odometer reading based on the Vehicle Fleet number and Date of
purchase. This is so that we can get a current MPG for the vehicle to help
determine vehicle status.
The fields used are:
FleetNumber: This is the number of the vehicle. Example: 110, 101, 108, etc.
DateOfPurchase: This is the Date that the Gas or other service was purchased.
TimeOfPurchase: This is the Time that the purchase was made. This is used
so that if several purchases were made that day for the same vehicle, there
is a time line to follow.
OdometeReading: Yes I spelled it wrong, but I just left it that way. This
is to enter the current Odometer reading at the time of purchase.
LastFill: This is the field that I want to have automatically fill in with
the highest odometer reading based on the first 3 items listed above.
I am thinking that it is something to add to the after update in the Vehicle
Fleet Number field, but I can't seem to get it to work.
Currently I have a MakeTable query run after I enter the FleetNumber. This
inturn opens up a small pop-up form to list the purchases and Odometer
readings of that vehicle and then the user has to manually choose and enter
the LastFill information based on this pop-up form.
While this works, it is far from the final results that I am looking for.
Thanks in advance for your help.
service. I want to be able to have it prefill the LAST FILL block with the
vehicles odometer reading based on the Vehicle Fleet number and Date of
purchase. This is so that we can get a current MPG for the vehicle to help
determine vehicle status.
The fields used are:
FleetNumber: This is the number of the vehicle. Example: 110, 101, 108, etc.
DateOfPurchase: This is the Date that the Gas or other service was purchased.
TimeOfPurchase: This is the Time that the purchase was made. This is used
so that if several purchases were made that day for the same vehicle, there
is a time line to follow.
OdometeReading: Yes I spelled it wrong, but I just left it that way. This
is to enter the current Odometer reading at the time of purchase.
LastFill: This is the field that I want to have automatically fill in with
the highest odometer reading based on the first 3 items listed above.
I am thinking that it is something to add to the after update in the Vehicle
Fleet Number field, but I can't seem to get it to work.
Currently I have a MakeTable query run after I enter the FleetNumber. This
inturn opens up a small pop-up form to list the purchases and Odometer
readings of that vehicle and then the user has to manually choose and enter
the LastFill information based on this pop-up form.
While this works, it is far from the final results that I am looking for.
Thanks in advance for your help.