No...It's not ADO. I'm using the recordsets in Access 97.
The way I get around it now is by forcing an error if it's not open, setting a Status variable to true and then going on from there with resume next.....which just doesn't seem to be the right way to be doing things. Anyway, below is a little snippet of what I do.
Suggestions on how to do be doing this right are greatly appreciated.
MySub as Private ()
On Error GoTo ErrorHandler
If rstRunID.Bookmarkable Then 'Not true Produces an
If RstClosed <> True Then 'error
rstRunID.Close
End If
End If
Exit Sub
ErrorHandler:
Select Case Err.Number
Case 3420 'Object (Recordset) No longer set.
RstClosed = True
Resume Next
Case Else
MsgBox Err.Number & " " & Err.Description
End Select
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.