I have another question....
Recently I got this error.
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Cannot update. Database or object is read-only.
/Jose/add.asp, line 21
Browser Type:
Opera/9.80 (Windows NT 5.1; U; en) Presto/2.5.22 Version/10.50
Page:
GET /Jose/add.asp
My code is as follows.....
Expand|Select|Wrap|Line Numbers
- <%@ Language=VBScript %>
- <% Response.Buffer = true %>
- <HTML>
- <HEAD>
- <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
- </HEAD>
- <BODY>
- <%
- Dim rs
- Set rs = Server.CreateObject ("ADODB.Recordset")
- rs.CursorType = 2
- rs.LockType = 3
- rs.Open "register", "DSN=Registration"
- rs.AddNew
- rs("Name") = Request.Form ("name")
- rs("Age") = Request.Form ("age")
- rs.Update
- rs.Close
- set rs = nothing
- Response.write("Updated")
- %>
- <P> </P>
- </BODY>
- </HTML>