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 
Hide Macro Error
Dan Jackson 
            
4 years ago
Hi guys,

Hopefully real simple. When creating a new record in a form and it fails data validation, i get the following errors

1 - Validation Text
2 - Access warning about closing without saving
3 - Macro Stop error (Because i'm using an exit button, can ignore this)

Ideally, i'd like to only show error 1 but just as happy with errors 1 and 2. How can i handle error 3 so it doesn't show. I think i remember an If error Macro?

As always, many thanks for any help provided, cheers
Dan Jackson OP  @Reply  
            
4 years ago

Dan Jackson OP  @Reply  
            
4 years ago
Just tried the OnError macro but works too well - it clears all of them!
Rajashree Natarajan  @Reply  
      
4 years ago
Hi Dan, where is the OnError macro in the DB?
Richard Rost  @Reply  
          
4 years ago
Another one of the reasons why I prefer VBA over macros.
Dan Jackson OP  @Reply  
            
4 years ago
Is there a video on error handling? I tried searching but only found the video on "error message explanations". I'm guessing theres something in the developers level of the course?
Kevin Robertson  @Reply  
          
4 years ago
Dan,

Basic debugging is covered in Access Developer 2
Advanced debugging is covered in Access Developer 15
Dan Jackson OP  @Reply  
            
4 years ago
Cheers
Dan Jackson OP  @Reply  
            
4 years ago

Dan Jackson OP  @Reply  
            
4 years ago
was worth a try haha!!

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/6/2026 7:28:23 AM. PLT: 1s