|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Unknown Syntax Error - Probably a simple fix
I am constantly getting an error 80040e14 Syntax Error in INSERT INTO Statement in the following SQL query, but I am currently unable to locate where it is. Can somebody help me out?
SQL = "INSERT INTO comments (entryID,timestamp,authname,email,comment) VALUES (" & comEntryID & ",#" & comTimestamp & "#,'" & comAuthname & "','" & comEmail & "','" & comComment & "');" fields in table "comments": entryID=number field timestamp=date/time field authname=text field email=text field comment=extended text field (aka "memo" in MS Access 2000) Thanks. |
|
#2
|
||||
|
||||
|
Try entering one field at a time, this will help you find which field is causing the problem, also try putting brackets [] around "timestamp".
It's reserved word in SQL Server, but I'm not sure about Access. |
|
#3
|
|||
|
|||
|
Thanks, "timestamp" did seem to be the cause of the problem
|
![]() |
| Viewing: ASP Free Forums > Database > SQL Development > Unknown Syntax Error - Probably a simple fix |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|