How To Prevent Accidental Shutdown Of Your Microsoft Access Database
ฝัง
- เผยแพร่เมื่อ 22 มิ.ย. 2023
- In this Microsoft Access tutorial I'm going to teach you how to prevent accidental shutdown of your database when the user clicks on the close button for the entire application.
Tyrone from the United Kingdom (a Silver Member) asks: When my users go to close a report in Print Preview mode, then often click the top-most "X" to close the Microsoft Access application itself instead of closing the report. This shuts down the database. Do I need to educate them to use the correct close button, or is there a way that when they click the wrong button it can just close the report instead?
Silver members and up get access to an Extended Cut of this video. Members will learn how to automatically close a report if it's open and the user tries to close the database. We will also learn how to loop through all of the reports in the database and close them if they are open. And I'll show you how to hide the print preview ribbon.
MEMBERS-ONLY EXTENDED CUT VIDEO:
• Prevent Shutdown EXTEN...
BECOME A MEMBER:
TH-cam: / @599cd
or My Site: 599cd.com/THMember
LEARN MORE:
599cd.com/PreventShutdown
PREREQUISITES:
Intro to VBA: 599cd.com/VBA
MsgBox: 599cd.com/MsgBox
If Then: 599cd.com/IfThen
Before Update: 599cd.com/BeforeUpdate
LINKS:
Simple Security: 599cd.com/SimpleSecurity
Prevent Close: 599cd.com/PreventClose
RECOMMENDED COURSES:
Access Developer Courses: 599cd.com/Developer
FREE TEMPLATE DOWNLOADS:
TechHelp Free Templates: 599cd.com/THFree
Blank Template: 599cd.com/Blank
Contact Management: 599cd.com/Contacts
Order Entry & Invoicing: 599cd.com/Invoicing
More Access Templates: 599cd.com/AccessTemplates
ADDITIONAL RESOURCES:
FREE Access Beginner Level 1: 599cd.com/Free1
How to Use Access in 30 Minutes: 599cd.com/30Minutes
$1 Access Level 2: 599cd.com/1Dollar
Donate to my Tip Jar: 599cd.com/TipJar
Get on my Mailing List: 599cd.com/YTML
Contact Me: 599cd.com/Contact
TechHelp: 599cd.com/TechHelp
Consulting Help: 599cd.com/DevNet
Twitter: / learningaccess
en.wikipedia.org/wiki/Microso...
products.office.com/en-us/access
microsoft.com/en-us/microsoft...
KEYWORDS:
access 2016, access 2019, access 2021, access 365, microsoft access, ms access, ms access tutorial, #msaccess, #microsoftaccess, #help, #howto, #tutorial, #learn, #lesson, #training, #database, On Unload, OnUnload, Form_Unload, Cancel closing a form, currentproject.allreports, loop through reports, isloaded, showtoolbar, hide print preview ribbon tab
QUESTIONS:
Please feel free to post your questions or comments below. Thanks.
Thanks for the video Richard! I keep doing this so I'll be implementing this functionality in my databases! 🙂
this is great idea , it works perfect
Thanks Richard. Good solution but I always disable the X Close button so the database can only be closed the way I want.
Very elegant!
Hi; I always maximize my reports. So I put my DoCmd.Maximize on the On Load event and the silly white ribbon disappears automatically when I close the report. Hope that helps!
Hi Richard I have had a problem with a database after windows update last week all was working ok and the next day open access ok but when typing on a form or editing the form the cursor would not move and no text would be entered either. I shut down access several times etc, rebooted my pc still the same word & excel worked ok and you could type things in ok have you got any ideas how to get it working again. Steve b. Grate video thank you very much.