Rangersfrst
04-17-02, 21:44
| I am using ASP&ADO to Access a SQL 200 Server where the proper permissions have been allocated for the user and I keep getting this error message Error Type: ADODB.Recordset (0x800A0CB3) Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype. I have tried all of the LockTypes and no change. I have tried a combination of all the lock types with the cursor types as well but still this error. Here is the code that does the work If rstHDD.EOF then Call RST_New(rstHDI) rstHDI.open "HepDoseDate", Cnn, adOpenDynamic, adLockOptimistic If rstHDI.Supports(adAddNew) then response.write "Can add new rst" rstHDI.AddNew rstHDI.Fields("EmployeeID").Value = empid rstHDI.Fields("Consent").Value = consent rstHDI.Fields("Decline").Value = decline rstHDI.Fields("Shot1").Value = shot1 rstHDI.Fields("Shot2").Value = shot2 rstHDI.Fields("Shot3").Value = shot3 rstHDI.Update Else response.write "Cannot add new rst" End If Else response.write " Updating" rstHDD.Fields("Consent").Value = consent rstHDD.Fields("Decline").Value = decline rstHDD.Fields("Shot1").Value = shot1 rstHDD.Fields("Shot2").Value = shot2 rstHDD.Fields("Shot3").Value = shot3 rstHDD.update End If I cannot addnew or update recordsets. Please let me know if you see the problem. the Call RST_New just sets the rst = server.createobject("ADODB.Recordset") |