Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting a default value on a form

Status
Not open for further replies.

cell0042

Programmer
Nov 5, 2002
16
US
I'm kind of new VB so I was wondering if I could get some help. I have two fields (Begining and Ending Odometers) that need to be calculated. They get the odometer readings off of the trucks and input them into the database. I want to be able to have the default value in the Beginning Odometer field to equal the ending odometer from the last time it was used. I really don't need to store the Beginning Odometer at all. I don't want them to have to enter the Beg. odometer at all so it will help to reduce errors in the calculations. I need to know what kind of code do I need to right.
 
look into the dmax function, that might get you going...

--James
junior1544@jmjpc.net
Life is change. To deny change is to deny life.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top