I am trying to insert form information into an access database. I have tried using rst.AddNew, but I get the message it is unsupported by my provider.
Also, I have tried Insert Into, which gives me the following message
Microsoft JET Database Engine error '80040e14'
Syntax error in INSERT INTO statement.
/AddProcess.asp, line 71
I've looked through several websites and books and I can't figure out how to fix this. Any help would be greatly appreciated.
Thank you.
My code is below.
strSQL = "INSERT INTO Table (Field1, Field2) VALUES ('" & strField1 & "', '" & strField2 & "')"
strDBPath = Server.MapPath("AccessDatabase.MDB"
Set conn = Server.CreateObject("ADODB.Connection"
conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strDBPath & ";"
Set rst = conn.Execute(strSQL)
Also, I have tried Insert Into, which gives me the following message
Microsoft JET Database Engine error '80040e14'
Syntax error in INSERT INTO statement.
/AddProcess.asp, line 71
I've looked through several websites and books and I can't figure out how to fix this. Any help would be greatly appreciated.
Thank you.
My code is below.
strSQL = "INSERT INTO Table (Field1, Field2) VALUES ('" & strField1 & "', '" & strField2 & "')"
strDBPath = Server.MapPath("AccessDatabase.MDB"
Set conn = Server.CreateObject("ADODB.Connection"
conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strDBPath & ";"
Set rst = conn.Execute(strSQL)