M
mota
Hi;
In most procedures i use:
Dim DB as DataBase
Set DB=DBEngine(0)(0)
I know i must close and reset all object variables at the end of
SubRouthines or Functions.But,since i use commonly the variable DB for all
database variables,i dont know which one of the following is better to save
system resources more efficient:
DB.Close
or
Set DB=Nothing
or
DB.Close:Set DB=Nothing
I have a similar question about "Set Rs=DB.OpenRecordSet(aTableName)" and
will use your recommendation for it too.
Thank you in advance for your help.
In most procedures i use:
Dim DB as DataBase
Set DB=DBEngine(0)(0)
I know i must close and reset all object variables at the end of
SubRouthines or Functions.But,since i use commonly the variable DB for all
database variables,i dont know which one of the following is better to save
system resources more efficient:
DB.Close
or
Set DB=Nothing
or
DB.Close:Set DB=Nothing
I have a similar question about "Set Rs=DB.OpenRecordSet(aTableName)" and
will use your recommendation for it too.
Thank you in advance for your help.