Ask a Question related to Coldfusion Database Access, Design and Development.
-
MazTaim #1
CFMX 6.1/Access 2002 Date/Time Errors on INSERTStatement
The attached code gives me the following error:
Error Executing Database Query. [Macromedia][SequeLink JDBC Driver][ODBC
Socket][Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO
statement.
I have tried numerous things including formatting the date/time, but I
continually get this error message. I am not sure if it is specific to the
date/time issue, but I am extremely stumped at this point. Any help would be
appreciated.
Code:
<cfquery name="CSDSurveyCMSubmit" datasource="hd0_csd">
INSERT INTO FollowUp (
Comment,
FollowBy,
Ticket,
Date,
Complete
)
VALUES (
'#Comment#',
'#Name#',
'#TicketNo#',
'#CreateODBCDateTime(now())#',
'1'
);
</cfquery>
MazTaim Guest
-
errors with the date/time button
yeah, the date button thinks that its 1970....I find that a little bit odd...anybody know how to fix this? ~Jordan Lambrecht (www.jordysworld.tk) -
Date/Time format with MS Access & CF
Does anyone know of any workarounds regarding date/time format between MS Access and ColdFusion? Right now I have to set a column in my Access... -
MS Access time and date problem
As the topic summary says, I am having trouble inserting both time and dates into a MS Access database. My database has three fields, eventdate,... -
Access Date Time Query
I am having some trouble with a query for Date Time in Access. I assume it is because the Access formatted date is Date/Time with stored data that... -
Access 2000 / 2002 errors - urgent
Hi there, I tried to open the access 2000 mdb(migrated from access 97) in access 2002 on XP. the forms are running. the forms have entry fields... -
mxstu #2
Re: CFMX 6.1/Access 2002 Date/Time Errors on INSERTStatement
Two initial problems
1) "Date" is a reserved word and should not be used as a column name. Change
the column name to something else
2) Don't use single quotes around the #CreateODBCDateTime()# function.
Though I *think* #now()# and #CreateODBCDateTime()# return the same value.
mxstu Guest
-
mxstu #3
Re: CFMX 6.1/Access 2002 Date/Time Errors on INSERTStatement
Ooops! What I meant was, I think #now()# returns the date/time in the same format as #CreateODBCDateTime()#
{ts '2005-08-01 08:42:34'}
mxstu Guest
-
MazTaim #4
Re: CFMX 6.1/Access 2002 Date/Time Errors on INSERTStatement
That worked. Thank you for the help.
MazTaim Guest



Reply With Quote

