Albert, I believe you just have to specify the ActiveX control object itself, instead of the OLE Container. In other words, if your datepicker has a name of oDatePicker, you should reference it as oDatePicker.Object.Enabled
HTH
>To All,
>
>How can i enable/disable the datepicker programatically.
>Setting it to enabled/disabled had no effect, only if i set the olecontrol-datepicker2-properties enabled/disabled it work.
>But i cannot trace in afterwards in the object properties...
>
>Albert
Doug Stalter
"According to the proverb, the best things are the most difficult." -Plutarch