Lainkes 0 Posted March 18 Hello, I have a DateTimePicker field. The value (date) is saved to a field in my database (mySQL). I have a checkbox that indicates that no date is needed when it is checked. How can I write a Null value to my database instead of a date? Thanks Alain Share this post Link to post
Lainkes 0 Posted March 18 I use this FieldByName('STAT_CLOSED_DATE').AsDateTime := DTP_Close_Dossier.Date;: So I wrrte the value of the DateTimePicker to the database. The database field is a Date format. Share this post Link to post
Attila Kovacs 629 Posted March 18 FieldByName('STAT_CLOSED_DATE').Clear; 1 Share this post Link to post
Cristian Peța 103 Posted March 19 FieldByName('STAT_CLOSED_DATE').Value := Null Easier to read for me. Share this post Link to post