我希望弄清楚我在下面的子项中做错了什么。 我收到了错误:
ADODB.Recordset- Error '800a0e78'
Operation on closed object is not permitted.
分:
public sub openRS2(sSQL)
xoutd sSQL
gRS2.ActiveConnection = gCON
gRS2.CursorLocation = 3 'adUseClient
gRS2.Source = sSQL
lastsql = lastsql & "<BR>" & sSQL & "<BR>"
'response.write sql
'response.flush
On Error Resume Next
gRS2.Open
DisplayErrorInfo gRS2,"openRS2"
xout "######################################"
For Each errorObject In gRS2.ActiveConnection.Errors
xout "Description :"& errorObject.Description
xout "Number:"& Hex(errorObject.Number)
Next
Set gRS2.ActiveConnection = Nothing
end sub
有任何线索吗?
谢谢!