In the Form's "OnLoad" event use the following Select statement pattern to
get the startmilage from the Record with the highest Date.
SELECT Top 1<startmileage> FROM <table> ORDER BY <date> ASC
Then apply it to the value of the Text Box on the Form, something along the
lines of:
txtStartMileage.text = <startmileage>
My knowledge of VB and SQL is "generic" in nature and my knowledge of the
specifics of Access is limited. Sorry I can't be more specific than this,
but it should point you in the right direction.
--
Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com
"Nicole Monchamp" <(E-Mail Removed)> wrote in
message news:20DA783E-B2A6-48CB-BAB0-(E-Mail Removed)...
> I have a database that contains both starting and ending mileages.
> What I would like to do is have the data entry from show the default entry
> for the starting mileage be the ending mileage from the last record.
>
> I also need to be able to override this default in case the number changes
> for some reason.
>
> I have tried a Dlookup function and have not had any luck.
>
> Nicole