Hale, Jim
Jim.Hale at FleetPride.com
Mon Oct 25 14:20:36 CDT 2004
try qdf.close before you set qdf=nothing Jum Hale -----Original Message----- From: Myke Myers [mailto:mmmtbig at bellsouth.net] Sent: Monday, October 25, 2004 1:48 PM To: Database Advisors Subject: [AccessD] Memory Leak in DAO? Does anyone see why the sub procedure below would result in an out of memory condition when run about 100 times in a loop? Public Sub ExecuteActionQuery(strQueryName As String) Dim db As Database Dim qdf As QueryDef Set db = CurrentDb Set qdf = db.QueryDefs(strQueryName) qdf.Execute Set qdf = Nothing Set db = Nothing Exit Sub TIA Myke -- _______________________________________________ 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.