【发布时间】:2015-11-04 20:18:48
【问题描述】:
我收到错误 ADODB.Recordset error '800a0c93'
在此上下文中不允许对recordset3.moveprevious 进行操作。
我相信这可能与光标类型有关?我已经尝试添加
recordset3.CursorType = adOpenDynamic
recordset3.open FINDPART,adoCon
但得到同样的错误。
有人能看出我的代码有什么问题吗?
set recordset3=Server.CreateObject("ADODB.recordset")
recordset3.open FINDPART,adoCon,3,3
<% do while not recordset3.eof %>
<% if recordset3.fields("product2") = findme then
response.write("yes")
recordset3.movenext
nextpart = recordset3.fields("product2")
recordset3.moveprevious
recordset3.moveprevious
previouspart = recordset3.field("product")
exit do
end if
recordset3.movenext
loop%>
【问题讨论】:
标签: vbscript asp-classic adodb recordset