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!

set default date in record insertion form

Status
Not open for further replies.

ABinBoston

Programmer
Nov 6, 2001
22
US
I have a record insertion form with some textboxes on it. I'd like one of them to be today's date in the format of 3/12/02 when the form loads. If the user changes the date manually, that's up to them.

How do I set the initial value of the textbox namde EntryDate to today's date when the form loads?

Thanks! - AB
 
Date()

or

strDate = ((Datepart(d, Date()) & "/" & (Datepart(m, Date() & "/" & (Datepart(yyyy, Date()))

and give the box value of strDate,

or something along these lines Live long and make your kids suffer..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top