Hi experts,
I was using the below given code to capture data in a table
And close record set and database after getting data updated but I got some information stating the below will be faster
It works however I want to know whether I need to close the database at the end of the code. Like
Could you suggest?
I was using the below given code to capture data in a table
Code:
sub test()
Dim db
Dim rst
Set db = CurrentDb()
Set rst = db.OpenRecordset("select * from mytable")
.
.
.
.
And close record set and database after getting data updated but I got some information stating the below will be faster
Code:
DBEngine(0)(0).openrecordset(“etbl”,dbopendynaset)
Code:
set dB = nothing