> there is no way (unless you go to extremes) to test if it
Care to give a brief explanation of those extremes? I've always wished
there were some way to programmatically evaluate any variables in scope...
return a list of them or something.
--
Jack Leach
www.tristatemachine.com
"I haven''t failed, I''ve found ten thousand ways that don''t work."
-Thomas Edison (1847-1931)
"Tom van Stiphout" wrote:
> On Sun, 21 Mar 2010 16:22:01 -0700, DontKnow
> <(E-Mail Removed)> wrote:
>
> You can really only do this for global database and recordset objects.
> If you declare a recordset object in a procedure and then not close
> it, there is no way (unless you go to extremes) to test if it is still
> open outside of that procedure.
> I would spend a few minutes with the Find dialog and find all
> occurrences of "As Recordset" and its variants, and fix the code if
> needed.
>
> -Tom.
> Microsoft Access MVP
>
>
> >Hi Guys,
> >
> >Does anyone know how to check if a dao database or recordset has been left
> >open?? I would like to run some code and determine if I have inadvertenly
> >left open an object that requires closing ie. dbs.close or rs.close (and Set
> >rs = Nothing).
> >
> >I would like to use this code to seacrch the entire database looking for
> >objects that have not been closed...
> >
> >Many thnaks for your input guys,
> >
> >Cheers,
> >
> .
>