To All
I have done several Google searches and not been able to find how to write a blank or null date to a datetime field in MS Sql server using ADO recordset update. Consider this example:
|DATE |
| null |
dDATE := oRs:Fields("DATE"):Value // xHarbour sees a NULL date as NIL
writing back a blank date
oRs:Fields( "DATE" ):Value := IF( EMPTY( dDATE ), NIL, dDATE )
This works .. however it puts a DEFAULT date of 12/30/1899 in for the NIL parameter and writes that to the table. I need to be able to let a user blank out a date and store it as BLANK or NULL in the SQL table .. ctod("") gives an ADO run-time if you try to write that value to the MS SQL table.
Any ideas ??
Rick Lipkin
SC Dept of Health, USA