mobious
06-19-2003, 11:17 AM
Something has changed and for the life of me I cant figure out what it is.. I was able to update my DB with the following script but for some reason now I can not.. It comes back with this error
Error Type:
Microsoft JET Database Engine (0x80040E09)
Cannot update. Database or object is read-only.
/work/management/admin/anewsupdate.asp, line 19
Here is the update script
<!--#INCLUDE file="../../includes/config.asp"-->
<%
DIM rsNews
DIM strSql
DIM strTitle, strSnews, strNews
strTitle = Request("title")
strSnews = Request("sNews")
strNews = Request("lNews")
Set rsNews = Server.CreateObject("ADODB.Recordset")
strSql = "SELECT * FROM news;"
rsNews.CursorType = 2
rsNews.LockType = 3
rsNews.Open strSql, adocon
rsNews.AddNew
rsNews("newstitle") = Request("title")
rsNews("shortnews") = Request("sNews")
rsNews("news") = Request("lNews")
rsNews.Update
rsNews.Close
adocon.Close
Response.Redirect("Index.asp?nav=maint")
%>
Thanks for the help in advance..
:)
Error Type:
Microsoft JET Database Engine (0x80040E09)
Cannot update. Database or object is read-only.
/work/management/admin/anewsupdate.asp, line 19
Here is the update script
<!--#INCLUDE file="../../includes/config.asp"-->
<%
DIM rsNews
DIM strSql
DIM strTitle, strSnews, strNews
strTitle = Request("title")
strSnews = Request("sNews")
strNews = Request("lNews")
Set rsNews = Server.CreateObject("ADODB.Recordset")
strSql = "SELECT * FROM news;"
rsNews.CursorType = 2
rsNews.LockType = 3
rsNews.Open strSql, adocon
rsNews.AddNew
rsNews("newstitle") = Request("title")
rsNews("shortnews") = Request("sNews")
rsNews("news") = Request("lNews")
rsNews.Update
rsNews.Close
adocon.Close
Response.Redirect("Index.asp?nav=maint")
%>
Thanks for the help in advance..
:)