>lfdate = "NULL" > >cSqlInsert = "insert into Company ( MYDATEFLD ) values " + ; > "(" + "'" + lfdate + "'" + ")" > >nResult = SQLEXEC(hCon,cSqlInsert) > >Remove your sigle quotes from around the NULL value.
cSqlInsert = "insert into Company ( MYDATEFLD ) values " + ; "(" + lfdate + ")"