Test for valid object?

L

Laurel

Is there a way to test if a recordset variable is valid? I have these
statements just before the exit to a function, but sometimes control goes to
that point before rstClassSummaryTemp has been opened. (It's a RecordSet
variable.) In another language I would use If IsValid(rstClassSummaryTemp)
Then

rstClassSummaryTemp.Close.... etc.
rstClassSummaryTemp.Close
Set rstClassSummaryTemp = 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