PDA

View Full Version : Set a calendar control to default to today



Djblois
01-22-2009, 03:10 PM
Here is another issue I am having:

I want to set my calendar Control to default to today. However, my code is not working:

Private Sub Form_Load()

Me.cldrApptDates.Value = Date

End Sub

OBP
01-23-2009, 03:41 AM
Try it in the Form's On Current Event instead.

CreganTur
01-23-2009, 06:22 AM
Actually no coding should be necessary. The Calendar Control 11.0 defaults to the current date on its own.

Djblois
01-23-2009, 07:01 AM
It isn't working that way. It is defaulting to February 13, which is not today's date!! lol

CreganTur
01-23-2009, 07:04 AM
Are you using Calendar Control 11.0 (or 12.0)? Or are you using a different ActiveX Calendar?

Djblois
01-23-2009, 07:24 AM
I am using Calendar Control 11.0. Is there a 12.0 and if there is what is different about it?

CreganTur
01-23-2009, 07:43 AM
Is there a 12.0 and if there is what is different about it?
I was just guessing that there might be an updated version for 2007.