Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Disable AutoSave    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Pressing Cancel closes form
James Walls 

2 years ago
I'm running into the issue shown at 8:48 in the video where clicking the Cancel button in the message box prompts the "You cannot save the record at this time" error. I have attempted multiple times to prevent closing my form either by using temp variables, ignoring the error per Kevin's suggestion in the "autosave" conversation, or moving the code entirely into the Form_Unload event. In the first two cases, pressing Cancel still closes my form, and moving the code into Form_Unload still saves changes if No is pressed. How do I go about fixing the issue such that pressing Cancel does not close the form without breaking the other functions?
James Walls OP  @Reply  

2 years ago
I have made some progress. Pressing Cancel in my message box no longer closes the form. My only missing piece now is figuring out how to make it so pressing Cancel doesn't undo the changes made in the form either.
Richard Rost  @Reply  
          
2 years ago
Yeah, the timing of these events can be tricky. When I get a few minutes, maybe I'll put together a video on something along these lines.

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

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: 4/12/2026 10:26:11 PM. PLT: 1s