I am getting this error adn I just can't figure out why.
'The Error
Microsoft SQL Native Client error '80040e14'
Incorrect syntax near the keyword 'User'.
/apps/cs/login/edit/update.asp, line 226
'The Code the error is coming from.
ProjectID=session("ID")
Subject="Account Update"
Note=Trim(Request.Form("office_comment"))
NoteDate=Now
Complete="-1"
Followup=Date
User="WEB"
sql = "INSERT INTO NotesD (ProjectID, Subject, Note, NoteDate, Complete, Followup, User)" & _
"VALUES ('"& ProjectID & "','" & Subject & "','" & Note & "','" & NoteDate & "','" & Complete & "','" & Followup & "','" & User & "')"
conn.execute sql, , 129
'The Error
Microsoft SQL Native Client error '80040e14'
Incorrect syntax near the keyword 'User'.
/apps/cs/login/edit/update.asp, line 226
'The Code the error is coming from.
ProjectID=session("ID")
Subject="Account Update"
Note=Trim(Request.Form("office_comment"))
NoteDate=Now
Complete="-1"
Followup=Date
User="WEB"
sql = "INSERT INTO NotesD (ProjectID, Subject, Note, NoteDate, Complete, Followup, User)" & _
"VALUES ('"& ProjectID & "','" & Subject & "','" & Note & "','" & NoteDate & "','" & Complete & "','" & Followup & "','" & User & "')"
conn.execute sql, , 129