I have an Access database with a field of type DATE/TIME and when I try to insert a date I get a data conversion error.
Here is the query, any ideas?
<cfquery name = "add_speaker" datasource="mydata" dbtype="ODBC">
INSERT INTO mytable (
first_word,
last_word,
date_added
)
VALUES (
'My',
'Bad',
<CFQUERYPARAM VALUE = "#CreateODBCDate(Now())#" CFSQLTYPE="CF_SQL_DATE">
</cfquery>
Here is the query, any ideas?
<cfquery name = "add_speaker" datasource="mydata" dbtype="ODBC">
INSERT INTO mytable (
first_word,
last_word,
date_added
)
VALUES (
'My',
'Bad',
<CFQUERYPARAM VALUE = "#CreateODBCDate(Now())#" CFSQLTYPE="CF_SQL_DATE">
</cfquery>