Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Forums > Developers
Back to Access Developer Forum    Comments List
use of Default Cancel control Upload Images   Link   Email  
Brian Crawford      
35 days ago
I often like to have a CloseBtn on a form set to the Default cancel button so that a user can also hit the escape key to exit the form.  This sometimes creates an issue because hitting escape sets up a cancel condition, which can interfere with other code modules.  Is there a way to clear the cancel condition when exiting the form?
Sami Shamma              
35 days ago
you CloseBtn should be set to the Default not Cancel property. you should have a different CancelBtn that will be set to the Cancel property of the form that will undo changes and closes the form.
Brian Crawford      
35 days ago
Is there a way to reset/clear the cancel event?  I changed the control to be normal.  (not default and not cancel).  I noticed that if the user hits escape, I get an error "operation canceled by user" when executing an open recordset in a subsequent form.  When I use the debugger, the Err.Number is 0 until the open recordset, which returns a 3059.  There seems to be a lingering cancel event waiting from something in VBA to care.
Sami Shamma              
35 days ago
What do you want to happen when a user hit the escape key?
Christopher Hankwembo    
34 days ago
Just open the form in design view and the click on that button and change it back to NO
Sami Shamma              
34 days ago
What is the reason you want to open a form from a button? What are you trying to accomplish?
Brian Crawford      
33 days ago
I just want to allow the user the option to exit the form with the escape key in addition to the close button.
Sami Shamma              
33 days ago
Have a hidden button the does a close form. Set it as the default cancel.
Richard Rost             
26 days ago
Set it as the "cancel" button.

"Default" is a different button.

LOL. Yes, I know you know this. I'm just pickin' on ya. :)
Add a Reply Upload an Image

 
 
 

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 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 7/19/2024 8:12:01 AM. PLT: 1s