Hey Friends,
This is more of a conceptual question rather than a problem. During my experience in Access VBA coding, I have seen various methods for closing one's session with a Recordset. I have seen some coders "close" the Recordset:
and I've seen others set the Recordset equal to "Nothing" like this:
Is there any type of substantive difference between these two methods and/or are there any advantages of one over the other? I know the bottom line is that good coding always does "something" to tell the DB that it is done with that Recordset, but I've just never heard discussion about these two ways of doing that.
Any insight would be appreciated, as I am always willing to learn more about how all this stuff works.
Thanks and warmest regards,
twinnyfo
This is more of a conceptual question rather than a problem. During my experience in Access VBA coding, I have seen various methods for closing one's session with a Recordset. I have seen some coders "close" the Recordset:
Code:
rstMyRecords.Close
Code:
Set rstMyRecords = Nothing
Any insight would be appreciated, as I am always willing to learn more about how all this stuff works.
Thanks and warmest regards,
twinnyfo
Comment