I have read that every recordset that you open should be explicitly closed. In this particular case, I have opened the recordset in the following way:
I have no variables set as DAO.Recordset, so how do I close this recordset? Do I just put
Or do I need to worry about closing the recordset since I haven't set it to a variable?
*Another Thought*
Or do I just need to add the little bit of extra code like this:
Code:
Dim intPronounCount as Integer
intPronounCount = CurrentDb.OpenRecordset("SELECT * FROM tblProunouns").RecordCount
Code:
CurrentDb.OpenRecordset("SELECT * FROM tblPronouns").Close
*Another Thought*
Or do I just need to add the little bit of extra code like this:
Code:
Dim rstPronoun as DAO.Recordset
Dim intPronounCount as integer
Set rstPronoun = CurrentDb.OpenRecordset("SELECT * FROM tblProunouns")
intPronounCount = rstPronoun.RecordCount
rstPronoun.close
Set rstPronoun = Nothing
Comment