Hopefully someone has com across this control before and could shed some light on my situation.
I have an ActiveX Calendar Control 11.0 ( class:MSCAL.Calendar.7) on a form in access, below it is a label.
In the Form's onOpen event i have the following code
Which according to the Office help should put the date into the label and select the date in Calendar.
The label part works fine, but I cant seem to get the calendar control to display any other date than the default set at design time. I have tried using both .Date and .Day .Month and .Year, but to no avail.
Is there some switch or option i'm missing - I've never really used ActiveX before, but I thought it should work just like a normal control.
Regards,
Mike
I have an ActiveX Calendar Control 11.0 ( class:MSCAL.Calendar.7) on a form in access, below it is a label.
In the Form's onOpen event i have the following code
Code:
dateLabel.Caption = Format(Date, "dd") + " " + Format(Date, "mmmm") + " " + Format(Date, "yyyy")
calendar.Value = Date
Which according to the Office help should put the date into the label and select the date in Calendar.
The label part works fine, but I cant seem to get the calendar control to display any other date than the default set at design time. I have tried using both .Date and .Day .Month and .Year, but to no avail.
Is there some switch or option i'm missing - I've never really used ActiveX before, but I thought it should work just like a normal control.
Regards,
Mike