Hi,
I'm getting a peristant error while I'm trying to add records to my database... I'm a novice at ASP and the error messages aint exactly helpful...
So the error is:
ADODB.Recordset error '800a0e7d'
The connection cannot be used to perform this operation. It is either closed or invalid in this context.
/b/r/a/brainfishes/AOD/home/add_worker.asp, line 11
My code is:
Code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
Dim DBCON
dim RS
dim SQL
DBCON = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" &
"C:\sites\content\b\r\a\brainfishes\db\data.mdb" & ";"
set RS=Server.CreateObject("ADODB.recordset")
RS.Open DBCON
SQL= "INSERT INTO links (link_name,link_url) VALUES (""" &
request.form("link_name") & """',"
SQL = SQL & "" & request.form("link_url") & """)"
response.write(SQL)
RS.execute SQL
RS.close
response.Redirect("http://brainfishes.brinkster.net/AOD/home/links.asp")
%>
I've double checked all the field names and the location of the DB, it's all correct... can someone please tell me where I'm going wrong?
Thanks,
Brainfishes.