Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem w. DTPicker

Status
Not open for further replies.

LakotaMan

Instructor
Aug 21, 2001
240
US
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,


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
 
Just a guess - is the datepicker control either 'Locked = Yes' or 'Enabled = No' in the control properties?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top