Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Cannot update. Database or object is read-only.
/bookRent/insert2.asp, line 16
นี้โคดของผมคับ
<%
Set Conn=Server.Createobject("ADODB.Connection")
Conn.Open "test","",""
Sql ="Select * From test where name='"&Request.Form("name")&"'"
Set Rs = Server.CreateObject("ADODB.Recordset")
RS.open Sql,Conn,1,3
if NOT(RS.EOF) then
response.write(" barcode ")
else
Rs.AddNew
Rs("name") = Request.Form("name")
Rs.Update
Conn.Close
response.write("aaa")
end if
%>