set DateTimePicker value to null issue

  • Thread starter Thread starter iccsi
  • Start date Start date
I

iccsi

I have a Date Time Picker on the form with check box true, and use
following code on FormLoad in an unbound control

dtpMyDateTimePicker = null


I get no current record error when open the form.
It works if I remove the code, but the control has value on it.

I tried to pur null value on the date time picker, because this is a
criteria filter for the form.


Any information is great appreciated,
 
iccsi said:
I have a Date Time Picker on the form with check box true, and use
following code on FormLoad in an unbound control

dtpMyDateTimePicker = null


I get no current record error when open the form.
It works if I remove the code, but the control has value on it.

I tried to pur null value on the date time picker, because this is a
criteria filter for the form.


Any information is great appreciated,

Setting something equal to Null is never a good idea.
Null is not even nothing. Use a zero or empty string for that.
 
Back
Top