How do I check if recordset exist?

S

Sunny

I want to close recordset before exiting from form id any. How do I check
whether recordset is exist or not?

Thanks.
 
J

John Nurick

Hi Sunny,

I wouldn't bother checking, I'd just try to close it and ignore the
error this may raise:

Dim rsR as Recordset

...

On Error Resume Next
rsR.Close
On Error Goto 0
Set rsR = Nothing
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top