I play around with some code in Access 2002
Public Sub CheckSeveral(strRef as string,....)
Dim rst1 as new adodb.recordset, rst2 as ...
'some code
exit_proc:
Here the trouble start.
I will be sure all my recordsets are closed and deleted
I'll try the following
If rst1.open then
rst1.close
end if
if rst2.open etc...
set rst1 = nothing
set rst2 = nothing etc.
End sub
But rst1.open is not the valid procedure, anyone knows how to check for open recordsets?
Thnx in advance,
gerard
Public Sub CheckSeveral(strRef as string,....)
Dim rst1 as new adodb.recordset, rst2 as ...
'some code
exit_proc:
Here the trouble start.
I will be sure all my recordsets are closed and deleted
I'll try the following
If rst1.open then
rst1.close
end if
if rst2.open etc...
set rst1 = nothing
set rst2 = nothing etc.
End sub
But rst1.open is not the valid procedure, anyone knows how to check for open recordsets?
Thnx in advance,
gerard