set date to today's date

  • Thread starter Thread starter newdatabaser via AccessMonster.com
  • Start date Start date
N

newdatabaser via AccessMonster.com

I would like to create a button in a form that would set a text box to
today's date. What is the command to do this? The unbound text box is named
"EndDate".
 
On click event of your button try this code
Me.EndDate.SetFocus
Me.EndDate=Date()
 
Works great. Thank you. The "()" in "Date()" is removed automatically for
some reason. Can you recommend a book with these commands. I don't know
what SetFocus does.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top