darkmastergyz
Registered User.
- Local time
- Today, 13:55
- Joined
- May 7, 2006
- Messages
- 85
I heard for good database practices, whenever you're done with opening and using a database, you should close the connection. So if I have an example connection like this, are the statements at the end enough?
dim db as database
dim rs as recordset
set db = current db
dim strSQL as string
strSQL = "SELECT * FROM db"
set rs = db.openrecordset(strSQL, openDynaSet)
(END):
set rs = nothing
rs.close
set db = nothing
db.close
dim db as database
dim rs as recordset
set db = current db
dim strSQL as string
strSQL = "SELECT * FROM db"
set rs = db.openrecordset(strSQL, openDynaSet)
(END):
set rs = nothing
rs.close
set db = nothing
db.close