Could someone help me understand where this problem come from.
my code:
mySQL = "UPDATE tblNewsLetters " _
& "SET newsDate = " & addDateDel(now()) & " , " _
& " newsDateInt= '" & dateInt(now()) & "', " _
& " newsSubj = '" & replace(newsSubj,"'","''")& "', " _
& " newsBody = '" & replace(newsBody,"'","''")& "' " _
& "WHERE idNews = " & idNews
set rs = objConn.Execute(mySQL)
This is how the code read:
UPDATE tblNewsLetters SET newsDate = #11/1/2006 5:09:22 PM# , newsDateInt= '20061101170922', newsSubj = 'TESTING', newsBody = 'testing newsletter email' WHERE idNews = 1
and, this is the ERROR:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '5'.
/admin/newsletters/news_exec.asp, line 195
thank for the help.
my code:
mySQL = "UPDATE tblNewsLetters " _
& "SET newsDate = " & addDateDel(now()) & " , " _
& " newsDateInt= '" & dateInt(now()) & "', " _
& " newsSubj = '" & replace(newsSubj,"'","''")& "', " _
& " newsBody = '" & replace(newsBody,"'","''")& "' " _
& "WHERE idNews = " & idNews
set rs = objConn.Execute(mySQL)
This is how the code read:
UPDATE tblNewsLetters SET newsDate = #11/1/2006 5:09:22 PM# , newsDateInt= '20061101170922', newsSubj = 'TESTING', newsBody = 'testing newsletter email' WHERE idNews = 1
and, this is the ERROR:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '5'.
/admin/newsletters/news_exec.asp, line 195
thank for the help.