In VB6- programming with database objects,
what is the proper (safest, best) way to
close out from & release connection to a database?
I have seen it coded 2 ways:
Set rsRecord = Nothing
Set dbDatabase = Nothing
and
rsRecord.Close
dbDatabase.Close
Which is correct?
Or should it be all 4 statements to release properly?
what is the proper (safest, best) way to
close out from & release connection to a database?
I have seen it coded 2 ways:
Set rsRecord = Nothing
Set dbDatabase = Nothing
and
rsRecord.Close
dbDatabase.Close
Which is correct?
Or should it be all 4 statements to release properly?