I have dtpicker control with the checkbox enabled. The control source is a date field. If the field is empty or null, I want to programmically set the value to null. However I get the error "Ole IDispatach exception code 0 from dtpicker: Property is read-only. I have tried setting the year,month, and day properties to null, and that does not work either. I have the code below. Does anyone have any ideas on how to do this?
Refresh Method
*** ActiveX Control Method ***
1 IF EMPTY(NVL(v_st1.scheduledshipdate,{}))
2 this.object.Value = null
3 ELSE
4 this.object.year = YEAR(v_st1.scheduledshipdate)
5 this.object.month = MONTH(v_st1.scheduledshipdate)
6 this.object.day = DAY(v_st1.scheduledshipdate)
7 ENDIF
8 this.object.Enabled = !(v_stshippinglog.exportprepared)
Refresh Method
*** ActiveX Control Method ***
1 IF EMPTY(NVL(v_st1.scheduledshipdate,{}))
2 this.object.Value = null
3 ELSE
4 this.object.year = YEAR(v_st1.scheduledshipdate)
5 this.object.month = MONTH(v_st1.scheduledshipdate)
6 this.object.day = DAY(v_st1.scheduledshipdate)
7 ENDIF
8 this.object.Enabled = !(v_stshippinglog.exportprepared)