Lainkes 0 Posted March 18, 2024 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, 2024 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 634 Posted March 18, 2024 FieldByName('STAT_CLOSED_DATE').Clear; 1 Share this post Link to post
Cristian Peța 108 Posted March 19, 2024 FieldByName('STAT_CLOSED_DATE').Value := Null Easier to read for me. Share this post Link to post