I have a table that tracks vehicle mileage and have created a form for data entry. I would like the form to reflect the last mileage when a user selects a vehicle #. Is that macro within the form or how would I best accomplish that?

=DMax("MilleageField", "TableThatContainsThatField", "VehicleID = " & Me.VehicleID)
[FONT=Calibri][SIZE=3]=DMax("[End Hrs/Miles]", "[Vehicle Usage]", "[BCO #] = [COLOR=Red]'[/COLOR]" & [BCO #] & "[COLOR=Red]'[/COLOR]")[/SIZE][/FONT]