Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Compactor Template    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Access Compactor Template Issue
Joseph Sylvester 
     
7 hours ago
I just purchased the Access Learning Zone "Access Compactor template". It works fine, but I am having problems creating a task to run the compactor database at startup with Windows Yask Scheduler. U reboot and the task syayis is currently running. It is still running after an hour. I searched online and the answers suggest either the task is hung or waiting for input. I can run the commands direcftkly from a cmd terminal and it executes with no problems. I have no idea if I have a Windows issue and/or a access problem. Any suggestions?
Alex Hedley  @Reply  
           
3 hours ago
What does your Task look like?
Richard Rost  @Reply  
          
83 minutes ago
Alex is asking the right first question: the exact Task Scheduler setup matters.

A few things I would check:

Make sure the task is launching the full path to MSACCESS.EXE, not just the database file.

Make sure the database path is in quotes.

Make sure the "Start in" folder is set to the folder where the compactor database lives. Access can behave differently when launched by Task Scheduler because the working folder may not be what you expect.

For testing, set the task to "Run only when user is logged on." Access is a desktop application, and running it in a hidden/non-interactive background session can sometimes hang if there is any prompt, trusted-location warning, missing reference, linked table issue, security prompt, etc.

I would also add a simple log table or text file to the compactor database so it records each step: startup, beginning compact, finished compact, and quitting. That will tell us exactly where it is getting stuck.

And finally, make sure the compactor database actually closes Access when it is finished, for example with DoCmd.Quit acQuitSaveNone.
Add a Reply Upload an Image
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/1/2026 10:35:17 PM. PLT: 1s