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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Incert the date into a Text box

Status
Not open for further replies.

Robson8112

Technical User
Sep 5, 2002
39
0
0
GB
Does anybody know how to create a command that opens up a current date/time in a small form so you can select the date/time from a calender OR a button that when clicked inserts the current time/date into a text box?
 
do you really want to click ?

you could set de default property of a text box to =now()
or =date()
 
You can use the Microsoft Date and Time Picker control (if available), by clicking on the more controls on the form design tool bar.

or

On the command button click event put

textboxname = Date()

There are two ways to write error-free programs; only the third one works.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top