I am having no end of trouble trying to work with the DTPicker control. I keep reading in the posts (and on the MS site) that the way to change the default date on this ActiveX control is to set the value property to the desired date on the Form Load event. Which I do,
and I get the following error:
"DTPicker returned the error: Property is read only"
Is there a way to get past this (the control's property sheet shows the enabled set to Yes, and Locked at No).
ANY help you can give me will be greatly appeciated.
TWD
Code:
Private Sub Form_Load()
Me.FromDate.Value = "7/1/2010"
Me.ToDate.Value = "6/30/2011"
End Sub
and I get the following error:
"DTPicker returned the error: Property is read only"
Is there a way to get past this (the control's property sheet shows the enabled set to Yes, and Locked at No).
ANY help you can give me will be greatly appeciated.
TWD