Ask a Question related to Coldfusion Database Access, Design and Development.
-
hazalj #1
Syntax error when trying to update date/time field
I am getting a MS Access ODBC Syntax error (missing operator) in query
expression '2006-01-05 09:17:01.0' when I try to execute an update query. On
the update form I have a hidden value that passes the current date and time.
Any help would be appreciated. Thanks. Here's the query:
<cfquery datasource="hazblog">
Update blog
set btitle='#btitle#', blogusersid='#blogusersid#', bcontent='#bcontent#',
bdate=#bdate#, fname='#fname#', lname='#lname#', category='#category#',
publish='#publish#', lastupdated=#lastupdated#
where blogid= #blogid#
</cfquery>
hazalj Guest
-
Get current date/time? Use them in hidden field?
I've got an app that works as a reception log for clients coming in our agency. The receptionist logs each client's name into our log database. ... -
Date/Time field default values!
I'm creating a CF page that keeps track of dates/time of things. I have all my Date/Time fields set-up as Date/Time in access and I use... -
date field in update stored procedure
When I try to update a date field that I've previously added to a SQL Server table, I get ths error message: Error converting data type varchar to... -
date & time in form field
I want to put the current date and time into a form field which will them be submitted to a database. Is this possible? If so, what code should I... -
Separated date and time or one datetime field
Hi all, I am learning php+mysql and am trying to set up a log database. I wonder if it is better to have 2 different columns for date and time... -
-
metasaad #3
Re: Syntax error when trying to update date/time field
5 years later...I am getting the same problem, can you clarify how you fixed this?
Syntax error (missing operator) in query expression ''{ts '2006-01-28 11:40:17'}''
Many thanks!
S
metasaad Guest
-
The ScareCrow #4
Re: Syntax error when trying to update date/time field
As the OP may not be around any more:
You may need to post some code.
But try wrapping the value in createodbcdatetime
Ken
The ScareCrow Guest



Reply With Quote

