נשלח בתאריך: 02 January 2007 בשעה 18:09 | | IP רשוּם
|
|
|
|
אהלן.. יש לי ספר אורחים שעושה בעיות בחיבור לMDB בACCESS ולכתיבה בו.. זאת השגיאה שהוא מראה לי :
Error Type: ADODB.Recordset (0x800A0CB3) Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype. /guestbook2/guestadd.asp, line 33
גם זה לא מצליח .... יש רעיונות איך לפתור את התקלה? זה דף הguestadd.asp
<html>
<head> <meta name="GENERATOR" content="Microsoft FrontPage 6.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Adding User.....</title> </head>
<body bgcolor="#000080"> <% set conn = Server.CreateObject("ADODB.Connection") conn.Provider = "Microsoft.JET.OLEDB.4.0;Data Source=" & Server.MapPath("/") & "/guestbook2/fpdb/guestbook.mdb" set rs = Server.CreateObject("ADODB.Recordset") dim vals(5) vals(0) = Request.Form("name") vals(1) = Request.Form("email") vals(2) = Request.Form("homepage") vals(3) = Request.Form("title") vals(4) = Request.Form("date") vals(5) = Request.Form("comments") dim flds(5) flds(0) = "name" flds(1) = "email" flds(2) = "homepage" flds(3) = "title" flds(4) = "dateadded" flds(5) = "comments" conn.Open() rs.Open "guests", conn, 1, 3, 2 rs.AddNew flds, vals rs.Update rs.Close() conn.Close() set rs = nothing set conn = nothing Response.Redirect("Guestbook.asp")
%> </body>
</html>
השורה הבעייתית: (33) rs.AddNew flds, vals
|