i want to capture the curent server time and insert it into a database field as part of a query so i added the line:
<cfset surveydate = CreateODBCDateTime(Now())>
just before the query which contains:
insert into table (surveydate) values ('#surveydate#')
In my access database i created a field called "surveydate" and gave it a date/time datatype. When the query runs i get this error:
ODBC Error Code = 37000 (Syntax error or access violation)
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression ''{ts '2001-07-17 03:50:46'}''.
The error occurred while processing an element with a general identifier of (CFQUERY), occupying document position (98:1) to (98:157).
The right date is in there but i have that 'missing operator' - any ideas?
<cfset surveydate = CreateODBCDateTime(Now())>
just before the query which contains:
insert into table (surveydate) values ('#surveydate#')
In my access database i created a field called "surveydate" and gave it a date/time datatype. When the query runs i get this error:
ODBC Error Code = 37000 (Syntax error or access violation)
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression ''{ts '2001-07-17 03:50:46'}''.
The error occurred while processing an element with a general identifier of (CFQUERY), occupying document position (98:1) to (98:157).
The right date is in there but i have that 'missing operator' - any ideas?