Forum Moderators: open
SQL = "UPDATE [Order] SET bDone = " & bDone & ", comments = " & stringify(comments) & ", " & _
"datedone = " & null & ", cTotal = " & cTotal & " WHERE idOrder = " & idOrder
conn.execute(SQL)
here's the error:
[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near ','.
here's the statement being debugged:
UPDATE [Order] SET bDone = 0, comments = 'test', datedone = , cTotal = 225.00 WHERE idOrder = 10090
if i assign the datedone field = '' in the update, the statement works. it's only giving me trouble trying to insert the null value. the column is of type "smalldate", allowing nulls, with no default value.
any ideas?
-Matt