T
tkelley via AccessMonster.com
I'm really trying to establish good habits regarding garbage collection while
coding in VBA.
I like to always do a "rst.close" and "set rst=nothing". However, sometimes
"rst.close" fires an error because there was an error while it was in scope
(I assume, anyway).
So, I haven't found a definitive answer on whether "set rst=nothing" alone is
good enough, even if rst is still in scope and open. Does "set rst=nothing"
do a close by definition?
Any opinions from the MVP's / uber-gurus?
coding in VBA.
I like to always do a "rst.close" and "set rst=nothing". However, sometimes
"rst.close" fires an error because there was an error while it was in scope
(I assume, anyway).
So, I haven't found a definitive answer on whether "set rst=nothing" alone is
good enough, even if rst is still in scope and open. Does "set rst=nothing"
do a close by definition?
Any opinions from the MVP's / uber-gurus?