Hi all,
Can anyone tell me how to update the record with the null value. The action script as follows:
<cfquery name="updatelog" datasource="Shipping Management">
update log
set logdate='#dateformat(form.ilogdate, "mm/dd/yyyy"
#', type='#form.itype#', vesselid='#form.ivesselid#',
voyage='#form.ivoyage#', lastport='#form.ilastport#',
departuredate='#dateformat(form.ideparturedate, "mm/dd/yyyy"
#', callport='#form.icallport#',
position='#form.iposition#', remark1='#form.iremark1#',
activity='#form.iactivity#', activitytype='#form.iactivitytype#',
etaoretd='#form.ietaoretd#', etdate='#dateformat(form.ietdate, "mm/dd/yyyy"
#'
where logid='#form.ilogid#'
</cfquery>
When pressing the submit button, the following error will be shown as follow:
Error Diagnostic Information
ODBC Error Code = 37000 (Syntax error or access violation)
[MERANT][ODBC SQL Server Driver][SQL Server]Line 8: Incorrect syntax near ','.
The error occurred while processing an element with a general identifier of (CFQUERY), occupying document position (1:1) to (1:62).
Thanks a lot
Can anyone tell me how to update the record with the null value. The action script as follows:
<cfquery name="updatelog" datasource="Shipping Management">
update log
set logdate='#dateformat(form.ilogdate, "mm/dd/yyyy"
voyage='#form.ivoyage#', lastport='#form.ilastport#',
departuredate='#dateformat(form.ideparturedate, "mm/dd/yyyy"
position='#form.iposition#', remark1='#form.iremark1#',
activity='#form.iactivity#', activitytype='#form.iactivitytype#',
etaoretd='#form.ietaoretd#', etdate='#dateformat(form.ietdate, "mm/dd/yyyy"
where logid='#form.ilogid#'
</cfquery>
When pressing the submit button, the following error will be shown as follow:
Error Diagnostic Information
ODBC Error Code = 37000 (Syntax error or access violation)
[MERANT][ODBC SQL Server Driver][SQL Server]Line 8: Incorrect syntax near ','.
The error occurred while processing an element with a general identifier of (CFQUERY), occupying document position (1:1) to (1:62).
Thanks a lot