dragonturtle
Programmer
Hi,
Sorry if this is a silly question, but I don't know where to look. Which is more "efficient"? This first block which gets rid of rs after several queries...
or this next block which gets rid of the recordset after each query?
Sorry if this is a silly question, but I don't know where to look. Which is more "efficient"? This first block which gets rid of rs after several queries...
Code:
sql = "SELECT * FROM tblOne"
Set rs = Conn.Execute(sql)
a_one = rs.GetRows
sql = "SELECT * FROM tblTwo"
Set rs = Conn.Execute(sql)
a_two = rs.GetRows
Set rs = Nothing
or this next block which gets rid of the recordset after each query?
Code:
sql = "SELECT * FROM tblOne"
Set rs = Conn.Execute(sql)
a_one = rs.GetRows
Set rs = Nothing
sql = "SELECT * FROM tblTwo"
Set rs = Conn.Execute(sql)
a_two = rs.GetRows
Set rs = Nothing