Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Clear Memory in Access

Status
Not open for further replies.

aa2002

MIS
Mar 22, 2002
2
US
Is there a way to clear the memory in Access without quitting the application. I am running a large database with complex reports and it seems to be not reallocating the memory after I close the report. Any suggestion would be greatly appreciated.
Thanks
 
It doesn't matter with tables, they are the ones that don't reallocate space... If you compact the database it will do it. If there is a way to run the reports without the temp tables. the database size shouldn't change.
 
Also, be sure you null out any temporary database objects that you might create - which will, I believe, also release their "malloc()s"

Set db = ???
set rst = db.????
...
...
...

set db = NOTHING < the actual word &quot;nothing&quot;
set rst = NOTHING < the actual word &quot;nothing&quot;

I think the general rule I've seen people use is to set to NOTHING any object that you use SET... with to enable.




78.5% of all statistics are made up on the spot.
Another free Access forum:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top