madHatter1
Technical User
Hello
I am getting the following error message when I click on the 'Submit' button of a form:
city = request.form("city"
telephone = request.form("telephone"
message = request.form("message"
%>
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
/Valy.asp, line 275
This is where I have my INSERT INTO and wonder if this is where the error lies (it is the only INSERT INTO I have):
' this is where the information gets submitted to the db
DIM Conn,strConn,SQLstmt,RS
set Conn = server.createobject("adodb.connection"
strConn = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("/database/validation.mdb"
Conn.open strConn
SQLstmt = "INSERT INTO users (fullname,email,city,telephone,message)"
SQLstmt = SQLstmt & " VALUES ("
SQLstmt = SQLstmt & "'" & fullname & "',"
SQLstmt = SQLstmt & "'" & eMail & "',"
SQLstmt = SQLstmt & "'" & city & "',"
SQLstmt = SQLstmt & "'" & telephone & "',"
SQLstmt = SQLstmt & "'" & message & "',"
SQLstmt = SQLstmt & "
"
or, does the message at the beginning of the error message, that is, city = request.form("city"
telephone = request.form("telephone"
message = request.form("message"
%>
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
suggest the error lies elsewhere?
Many thanks for your views.
hatter
I am getting the following error message when I click on the 'Submit' button of a form:
city = request.form("city"
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
/Valy.asp, line 275
This is where I have my INSERT INTO and wonder if this is where the error lies (it is the only INSERT INTO I have):
' this is where the information gets submitted to the db
DIM Conn,strConn,SQLstmt,RS
set Conn = server.createobject("adodb.connection"
strConn = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("/database/validation.mdb"
Conn.open strConn
SQLstmt = "INSERT INTO users (fullname,email,city,telephone,message)"
SQLstmt = SQLstmt & " VALUES ("
SQLstmt = SQLstmt & "'" & fullname & "',"
SQLstmt = SQLstmt & "'" & eMail & "',"
SQLstmt = SQLstmt & "'" & city & "',"
SQLstmt = SQLstmt & "'" & telephone & "',"
SQLstmt = SQLstmt & "'" & message & "',"
SQLstmt = SQLstmt & "
or, does the message at the beginning of the error message, that is, city = request.form("city"
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
suggest the error lies elsewhere?
Many thanks for your views.
hatter