I'm getting an error and unsure what could be the cause. I have response.write'd out the SQL and copy pasted it into access and it runs perfectly fine, so I suspect it is something outside of just the SQL statement.
I actually copy pasted my code from when I was inserting values into a different database and just changed the database and the values I was inserting. Any ideas?
set conn = server.createobject("ADODB.Connection")
conn.open "provider=Microsoft.Jet.OLEDB.4.0; data source=" &server.mappath("/test_framework/rbxDB.mdb")
user = request.form("user")
pass = request.form("password")
sql = "INSERT INTO users (userID, password, Type) VALUES ('"&user&"', '"&pass&"', 'S');"
response.write(sql)
set rs=conn.execute(sql)
conn.close
set conn = nothing
Yes I'm aware there are a host of issues with this code, however they don't give me an error, I am just trying to fix this error "syntax" error.
What is response.writed is:
INSERT INTO users (userID, password, Type)
VALUES ('asdf', 'q123eqeds', 'S');