Classic ASP ProfessionalFor advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
I am getting the following error message when trying to update recordset in "While" looping:
Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype(Although the record get updated when I update single record).
My code:
set rsMoveNodeDown= Server.CreateObject ("ADODB.Recordset")
sSQL = "SELECT * from Contents WHERE Parent = " & iParent & " AND Ordr in(" & iNode & "," & iNodeAfter & ") ORDER BY Ordr "
'Response.Write sSQL
'Response.End
While not rsMoveNodeDown.EOF
if rsMoveNodeDown.EOF then
rsMoveNodeDown.Close
Set rsMoveNodeDown = Nothing
end if
rsMoveNodeDown("Parent") = iParent
rsMoveNodeDown("Ordr") = iNode+1
rsMoveNodeDown.Update