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 Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Display Message during Exit
Richard Pitassy 
       
2 years ago
Is it possible to display a message to the user (maybe a pop up form or progress bar) while Access is Exiting?  Something like "Access is closing.  Please wait."  It can sometimes take 5 or 8 seconds for the Exit command to close and exit my application.
Juan C Rivera  @Reply  
            
2 years ago
I do it with a form open form display what you wish and docmd.quit  the form opens and the access shuts down.  All done in VBA.
John Davy  @Reply  
         
2 years ago
Hi Richard
Take a look in the code vault at Sleep. You could make a small form with a message on it and use the sleep command to make it stay on the screen for a few seconds. Try it.
John
Richard Pitassy OP  @Reply  
       
2 years ago
Thanks guys.  Similar to what you have suggested, I tried opening a small "message" form with an Event timer to close it in 3 or 4 seconds and then run cmd.exit.  The problem is that I wind up with a 3 or 4 second message form and then the same 5-8 second delay while cmd.exit is running.  I guess what I'm trying to do is have the message form be open WHILE cmd.exit is doing its thing and when complete, both the message form and the application will close simultaneously.
Kevin Robertson  @Reply  
          
2 years ago
Open your Message Form in the On Unload event of your Main form (for example: MainMenuF)

Richard Pitassy OP  @Reply  
       
2 years ago
Kevin:  The only problem with using the Unload event as you suggested is that if I try to go into Design Mode from the Main Menu, the app closes.  Perhaps I didn't implement correctly.  In any event, while fiddling with this and that, I discovered that if I code the Exit Button on my Main Menu to open the Please Wait form and set the Event Timer on that form to cmd.exit and 1 milisecond, the app closes almost instantly thus eliminating the need for the Please Wait message.  Crazy.  I'm now concerned that the cmd.exit process is happening so quickly that it may not be doing whatever stuff it's supposed to do (???) before the app closes.  Any thought?

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

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/2/2026 5:20:00 AM. PLT: 0s