Is it necessary to close an Adodb.recordset object before setting it to nothing?
问题 Dim rs as ADODB.Recordset set rs = ReturnARecordset 'assume ReturnARecordset does just that... 'do something with rs rs.Close set rs = Nothing Is it necessary to call rs.Close before setting it to nothing? Edit: We have one global connection that we keep open for the duration of the application and all recordset objects use this same connection. I see two answers below talking about the need to close recordsets in order to ensure connections aren't left hanging open. To me that sounds like a