Selasa, 24 Februari 2015

Re: [MS_AccessPros] Proper way to exit procedure if RS is empty

 

Elizabeth-


Setting the db object to Nothing clears it so you don't get any memory leaks (a problem in earlier versions).  But you should NEVER close a db object set to the current database.  (Used to cause Access to blow up circa 2000 and earlier.)

John Viescas, Author
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications 
SQL Queries for Mere Mortals 
(Paris, France)




On Feb 24, 2015, at 6:51 PM, glcass58@yahoo.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:

Hi John,

Thanks for your response.  I'm a little confused though.  In your example, isn't your db object set to the current db?  So you don't need to set that to nothing?  Just want to make sure I understand. :)

Thanks,

Elizabeth


__._,_.___

Posted by: John Viescas <johnv@msn.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (4)

.

__,_._,___

Tidak ada komentar:

Posting Komentar