J
Jesper Fjølner
I've read a lot of conflicting statements about the need for deferencing
objects.
If I use:
Dim db as DAO.database
Dim rs as DAO.recordset
Set db = currentdb
Set rs = db.OpenRecordset(SQL)
What's needed to clean up?
rs.close
set rs = nothing
set db = nothing
All of them? Can "rs.close" be skipped? I've heard that using "set
db=nothing" is just good practice and not necessary.
I guess that whatever causes bloat, memory leakage or instability needs to
be terminated properly.
If objects go out of scope automatically it's just good practice but not
strictly necessary.
What's the verdict? Thanks for any input.
Jesper Fjølner
objects.
If I use:
Dim db as DAO.database
Dim rs as DAO.recordset
Set db = currentdb
Set rs = db.OpenRecordset(SQL)
What's needed to clean up?
rs.close
set rs = nothing
set db = nothing
All of them? Can "rs.close" be skipped? I've heard that using "set
db=nothing" is just good practice and not necessary.
I guess that whatever causes bloat, memory leakage or instability needs to
be terminated properly.
If objects go out of scope automatically it's just good practice but not
strictly necessary.
What's the verdict? Thanks for any input.
Jesper Fjølner