[AccessD] Test for Recordset Existence

Dan Waters dwaters at usinternet.com
Tue Dec 26 12:06:02 CST 2006


Jim & Jim!

Thanks for the quick response!  I'm working again!  :-)

Dan Waters


-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim
Sent: Tuesday, December 26, 2006 11:24 AM
To: 'Access Developers discussion and problem solving'
Subject: Re: [AccessD] Test for Recordset Existence

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.
-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com




More information about the AccessD mailing list