Change date of MS calendar control 11.0 in VBA (1 Viewer)

maikon

Oxxx|:::::::::::>
Local time
Today, 14:41
Joined
Jan 13, 2005
Messages
22
Hello there.

I'm trying to change activex calendar control value by code but I don't having sucess, the value (date) don't change!

How I tried:

'1
Calendar.Value = Date 'Date = Today

'2
Calendar.Today 'The help file suggest that form but don't go...

'3
Calendar.Day = 21
Calendar.Month = 1
Calendar.Year = 2005

'4
Calendar.NextDay 'The help file say that method increment the control day, but don't go...

Please, someone help me.

Thanx

Ps: I start my tale in MS Access Universe :) in the last week, then i don't know much about that DB. I'm really a newbie... Forgive my english, i'm brazillian...
 
R

Rich

Guest
Private Sub Form_Load()
Me!SelectDate.Today
End Sub


where SelectDate is the name of your calendar control
 

Users who are viewing this thread

Top Bottom