Settting Default Date on ActiveX Calendar

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

Yes, I've read the "Danger Will Robinson" warnings.

However, I'd like to better understand how to access the PROPERTIES of this
ActiveX Control.

I have a LOAD_FORM procedure, and would like to do something like:

Me.myCal.Value = Date
Me.myCal.Year = Year(Date)
Me.myCal.Month = Month(Date)

What is the specific syntax to do this, and in general, what is the syntax
to work with ActiveX controls properties?
Thanks.
 
That's exactly the syntax for the calendar control assuming the ActiveX
control's name is myCal:

Me.myCal.Value = Date

That automatically sets the year and the month so there's no need for the
other two lines. Does that not work for you for some reason?
 
Back
Top