Solved

Anyway to clear access memory

Posted on 2011-09-23
6
244 Views
Last Modified: 2012-06-27
Hi,

In my access, I am deleting few large tables/recreating. I was told that when you delete a table, the data is actually marked for deletion and it never leaves the db unless you do 'compact & repair"

Is there any other way to clear data/delete data from db without doing compact & repair?

Just a final try!

Thanks!

This is my other thread: http://www.experts-exchange.com/Microsoft/Development/MS_Access/Q_27322848.html#a36588470
0
Comment
Question by:Shanan212
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 167 total points
ID: 36588542
<Is there any other way to clear data/delete data from db without doing compact & repair?>

sorry but NO, afaik
0
 
LVL 75

Assisted Solution

by:DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform)
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 166 total points
ID: 36588619
Shanan212

Set your db to do a Compact On Close (see image),  Then, as you were going in the other Q ... run your delete / clear querie(s) ... then close the DB ... and it will Compact.

mx
Capture1.gif
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 36588637
?
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 13

Author Comment

by:Shanan212
ID: 36588649
Thanks!

I know I am hitting the head on brick wall now :p

But something like this?

http://www.tek-tips.com/viewthread.cfm?qid=238809&page=1269

- I have alot of temp tables...which I regret now. Although not a major thing (that db crashing somewhere in middle), I tried compacting via vba each time a loop is called but didn't work (make sense since compacting requires db to be closed)

Let me know!
0
 
LVL 74

Assisted Solution

by:Jeffrey Coachman
Jeffrey Coachman earned 167 total points
ID: 36588773
Shanan212,

<No Points wanted>

The link you posted is only relevant if you are using recordsets in your loops...
Then you must close them all and set them to nothing:
rst.Close
set rst=Nothing
...For lack of a simpler explanation, this reclaims "Windows" (OS) memory.

What you are referring to in here, in Access is not "technically" Memory, but rather resources/space inside the database internal file structure.

As the previous experts have posted, this can only be reclaimed/cleared by using C&R.
0
 
LVL 13

Author Closing Comment

by:Shanan212
ID: 36589211
Thanks all!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question