Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 25th, 2005, 09:43 PM
Friend of Wrox
Join Date: Mar 2004
Posts: 217
Thanks: 0
Thanked 1 Time in 1 Post
Default closing and cleaning up multiple recordsets

When working with multiple recordsets in a procedure in DAO, is there a "best" time to close out a recordset and set it to nothing?

Is it best to close them out one by one at the point they are no longer needed, or to wait until the end of the procedure and close them all out?

Thank you,


Old September 26th, 2005, 05:46 PM
Friend of Wrox
Join Date: Jul 2005
Posts: 150
Thanks: 0
Thanked 0 Times in 0 Posts

Is it best to close them out one by one at the point they are no longer needed?

Yes tyhis is the best way. and be sure to se the RecordsetName = Nothing

"Hi Tech Coach"
Access Based Accounting/Business Solutions developer.

Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple recordsets returned BCullenward Classic ASP Basics 7 July 28th, 2006 04:16 PM
Multiple Recordsets from Multiple Tables TSEROOGY Classic ASP Databases 2 December 28th, 2004 12:45 PM
Cleaning up resources jbenson001 ASP.NET 1.x and 2.0 Application Design 2 January 22nd, 2004 11:50 AM
Cleaning up data rlull SQL Server 2000 1 September 3rd, 2003 03:27 PM
Suppressing/cleaning previous entries gurevle HTML Code Clinic 1 June 24th, 2003 12:08 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.