Computer Learning Zone CLZ Access Excel Word Windows

The stated authority of a thousand is not worth the humble reasoning of a single individual.

-Neil deGrasse Tyson
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Captain's Log    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Kill MSACCESS.EXE Experiment
Richard Rost 
           
3 months ago
Captain's Log Supplemental. Access Server Experiment: Kill the Process, Not Just the Database

If you've been watching my videos for any amount of time, you probably know I keep a Microsoft Access database running on what I lovingly refer to as my "server machine." It's not a real server. It's basically a copy of Windows 10 sitting in the corner doing background work like a dedicated crewman who never sleeps.

This machine runs a 24-hour loop and does all kinds of automated tasks for me: sending emails (using my Email Seminar template), performing backups, running scheduled routines, and generally keeping my business humming along.



Now, for years I've noticed something annoying: if I don't reboot that machine at least once a week, Access starts throwing weird errors. Out-of-stack space. Random instability. Strange behavior that always magically disappears after a reboot. I assumed it was just Windows being Windows.

So I decided to run a little experiment. Starting January 15th, I changed my routine:

1) My nightly backup runs.
2) After the backup finishes, I force-kill MSACCESS.EXE. See Kill Access
3) That runs automatically three nights per week: Monday, Wednesday, and Friday.

And guess what?

Since I started doing that, I have not gotten a single one of those weird Access errors. We're going on three weeks now.

To put that in perspective: before this, if I didn't reboot that machine at least weekly, I'd get errors by Day 7 without question. And I'm talking years of this behavior. Like clockwork. In fact, if I was on vacation and the vacation would last longer than seven days, I had to make sure I logged in remotely to reboot the server. That meant if I was on a cruise in the middle of the Caribbean, I had to find a way to get online. Which nowadays is not a big deal, but you know ten years ago this was an issue.

So what does that tell me?

It strongly suggests that Access (or something in my environment) leaks memory over time, and simply closing the database isn't enough. Because here's the key part: my database already closes and restarts itself every 30 minutes during the loop. But I'm not killing the actual MSACCESS.EXE process, and clearly something is sticking around in memory.

Now, to be fair, this could be my code too.

This database has been evolving for about 20 years. It's huge. It does a LOT. And 20-years-ago Rick did not have today's coding skills. So I wouldn't be shocked if there's some old nonsense in there... unclosed objects, recordsets left hanging, orphaned references, duct tape, bailing wire... basically Scotty's engine room with bypasses everywhere like a Christmas tree.

That's why one of my favorite lines in class is: If you set it, you got to forget it.

But regardless of whether the leak is Access itself or my Franken-database, the result is real: killing MSACCESS.EXE a few times a week seems to prevent most of these cumulative weird errors.

So if you're running long-term Access automation (especially on a machine that stays up 24/7), consider scheduling an occasional full Access process kill, not just closing the database. It might save you from the classic creeping instability that shows up after several days.

LLAP
RR

Richard Rost OP  @Reply  
           
3 months ago

Michael Olgren  @Reply  
      
3 months ago
I find the same with just plain ol' Windows. I keep my desktop on (it still sleeps), but if I don't cold start it every few days, stuff starts happening. For me, the icons in the system tray turn invisible. The buttons are there-- they work, and hovering shows which invisible space is which app shortcut-- but it's blank space. Other more random things happen too, so now the system tray thing just makes me power off and restart later.
Richard Rost OP  @Reply  
           
3 months ago
Oh, I'm not saying you never need to reboot Windows. I would definitely still reboot Windows like once or twice a month, but I had to at least once a week, or my Access database started acting flaky.
Jeffrey Kraft  @Reply  
      
3 months ago
What is with all the script errors I am seeing.

599cd.com says

ERROR:

Script error.
URL:
Line: 0

Browser used is Chrome don't ask for the build, it also has occured using Edge.  Also noticed one of my post disappeared (not a big deal but).
Jeffrey Kraft  @Reply  
      
3 months ago

Richard Rost OP  @Reply  
           
3 months ago
Jeffrey on which page are you seeing that?
Jeffrey Kraft  @Reply  
      
3 months ago
This one. It's appeared on a couple other log entries as well.  Just started to happen a couple days ago.
Jeffrey Kraft  @Reply  
      
3 months ago
I take it back, the problem goes back to the Captains Log "Redneck Star Trek Green Girls", "Lots Going On" (had the issue now doesn't, "Rollable Laptop Screens are the future", and "KILL MSACCESS.EXE experiment" all have the error at least on this computer (haven't tried the lapton), it's not happening with Edge any more. It could be a chrome thing for me :(
Jeffrey Kraft  @Reply  
      
3 months ago
It may have been a plugin... after I removed it the problem went away. It's wierd that the issue was only those Captains logs above and maybe a video somewhere. :(
Richard Rost OP  @Reply  
           
3 months ago
Yeah, the only place I really use video embeds from YouTube is in the Captain's Log, so it could have been something dealing with that. I will say that at any given moment there's usually 30 to 50 users on the website watching classes, reading stuff, whatever. If there's a problem, I almost immediately get 10 to 15 emails, posts, or complaints that something's wrong. When it's just one user, my first thought is it's something on your machine.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Captain's Log.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/20/2026 10:07:02 PM. PLT: 1s