Whats the difference between rs.close vs rs = nothing in a RecordSet

Posted by Curtis Inderwiesche on Stack Overflow See other posts from Stack Overflow or by Curtis Inderwiesche
Published on 2010-03-30T02:12:09Z Indexed on 2010/03/30 2:13 UTC
Read the original article Hit count: 433

Filed under:
|
|

I often find it confusing as to when it is appropriate to use:

rs.Close

opposed to

Set rs = Nothing

I can understand needing to close a connection to a source, but should I be using both when the variable falls out of scope? Or should I just use one or the other?

© Stack Overflow or respective owner

Related posts about vba

Related posts about recordset