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

Calendar Control

Status
Not open for further replies.

RGarcia87

Technical User
Joined
Jun 24, 2002
Messages
506
Location
US
I'm using the Calendar Control in a form and I would like it to default to the current date everytime I open it. It is only defaulting to the date I created it.
 
When the form containing the calendar control opens (the OnOpen event of the form), set the value of the calendar control to the current date.
 
What's the code? I'm not a VB person.
 
Try:

me.Calendar1.value = Now()

Where Calendar1 is the name of your calendar control.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top