[AccessD] Test for Recordset Existence

Hale, Jim Jim.Hale at FleetPride.com
Tue Dec 26 11:23:47 CST 2006


How about this
Jim Hale

If Not (recset Is Nothing) Then recset.Close: Set recset = Nothing

-----Original Message-----
From: Dan Waters [mailto:dwaters at usinternet.com]
Sent: Tuesday, December 26, 2006 11:03 AM
To: 'Access Developers discussion and problem solving'
Subject: [AccessD] Test for Recordset Existence


During error handling, I want to test for the existence of a DAO recordset.
If the recordset has been set but not closed and set to nothing, then I want
to close it and set it to nothing.

How do I do this?


Thanks!
Dan Waters


-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com

***********************************************************************
The information transmitted is intended solely for the individual or
entity to which it is addressed and may contain confidential and/or
privileged material. Any review, retransmission, dissemination or
other use of or taking action in reliance upon this information by
persons or entities other than the intended recipient is prohibited.
If you have received this email in error please contact the sender and
delete the material from any computer. As a recipient of this email,
you are responsible for screening its contents and the contents of any
attachments for the presence of viruses. No liability is accepted for
any damages caused by any virus transmitted by this email.


More information about the AccessD mailing list