Hello Barry
I have been doing what you recomended me. It's getting better, the error
message appears less than before. I do not know if I made a mistake, trying
to have a module to kill this opened recordsets.
I made a module like this. And then I called it form the error message you
show me how to make it. I just pass the recordsets I am using. I do not know,
if this is correct or I may be leaving things unclose and that's why I am
still getting the same error message, even thou it is less frequent.
Public Sub TreeViewErrorHandler_Click(rst1 As DAO.Recordset, _
Optional rst2 As DAO.Recordset, _
Optional rst3 As DAO.Recordset)
If Not IsMissing(rst1) Then Set rst1 = Nothing
If Not IsMissing(rst2) Then Set rst2 = Nothing
Set rsSQL = Nothing
Set rsSQL1 = Nothing
Set dbs = Nothing
End Sub