I've run into a snag writing data from a text form field (T1). The error is cannot open. Database or object is read-only. I've browsed through and found one fix but it didn't seem to work on my setup. Thanks
-Fergman
<%
name = server.HtmlEncode(request.form("T1")
Set Conn = Server.CreateObject("ADODB.Connection"
Conn.Provider = "Microsoft.Jet.OLEDB.4.0"
Conn.ConnectionString = "Data Source=" & Server.MapPath ("fpdb/chamber.mdb"
Conn.Open
Set Rs = Server.CreateObject("ADODB.Recordset"
Rs.Open "SELECT * from Results", Conn, 1,3
Rs.addnew 'this line is where the error points
Rs("1_business_referrals" = name
Rs.update
set Rs = nothing
set Conn = nothing
%>
-Fergman
<%
name = server.HtmlEncode(request.form("T1")
Set Conn = Server.CreateObject("ADODB.Connection"
Conn.Provider = "Microsoft.Jet.OLEDB.4.0"
Conn.ConnectionString = "Data Source=" & Server.MapPath ("fpdb/chamber.mdb"
Conn.Open
Set Rs = Server.CreateObject("ADODB.Recordset"
Rs.Open "SELECT * from Results", Conn, 1,3
Rs.addnew 'this line is where the error points
Rs("1_business_referrals" = name
Rs.update
set Rs = nothing
set Conn = nothing
%>