Hi jen,
If I understand you correctly, it sounds like your table structure needs some
work.
I think you need two tables, one for vehicles and one for milages, the
relationships would be one vehicle to many milages.
Make the milages a continuous sub-form and place this code into the "after-
update" event of the end milage text box on the form. Change the names to
whatever the names are that you are using.
Private Sub EndTextboxname_AfterUpdate()
Me.Begintextboxname.DefaultValue = """" & Me.EndTextboxname.Value & """"
End Sub
Hope this helps
Jen wrote:
>I track vehicle mileage on all our work vehicles. I have been creating
>double entries by entering beginning and ending. How would I create a box to
>display the ending mileage from the previous record?
>
>Now my vehicles are sorted by numbers ... unit 12, 21, 22 etc. and how would
>I want to create tables to track these? Currently I use one table to track
>all vehicles.
>
>Thanks Jen
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...dules/200604/1