I am using VB.NET and trying to update a field in a Pervasive database using ODBC (Timberline Data Source to be exact) and am using ADO.
All of my updates work until I try to Null out a date as in the following example with Rehire_Date it errors.
Here is the line in question:
strSQL = "UPDATE MASTER_PRM_EMPLOYEE SET Termination_Date = NULL, Rehire_Date = '" & Format(CDate(txtRH.Text), "yyyy-MM-dd")', Phone_Number = '" & Trim(txtPhone.Text) & "' WHERE Employee = '" & Trim(txtID.Text) & "'"
I have tried NULL, '', 0000-00-00, chr(0) to no avail.
Everything I try gives me the Invalid Date, Time stamp error.
I have spent 4 hours trying to find anything on this with no results. Please help!!
Thanks!
All of my updates work until I try to Null out a date as in the following example with Rehire_Date it errors.
Here is the line in question:
strSQL = "UPDATE MASTER_PRM_EMPLOYEE SET Termination_Date = NULL, Rehire_Date = '" & Format(CDate(txtRH.Text), "yyyy-MM-dd")', Phone_Number = '" & Trim(txtPhone.Text) & "' WHERE Employee = '" & Trim(txtID.Text) & "'"
I have tried NULL, '', 0000-00-00, chr(0) to no avail.
Everything I try gives me the Invalid Date, Time stamp error.
I have spent 4 hours trying to find anything on this with no results. Please help!!
Thanks!