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 
OpenReport action was canceled
Monica Jones 
       
3 years ago
I'm revamping a database I created several years ago at work. One of its functions is to detect common typos in data entry. As such I have a number of queries that look for them. Generally, the data is good and closing a bazillion empty queries was time consuming and annoying. So I made reports out of them which have an option to not open if it's blank, Cancel = True. I loaded all of these in a macro and it worked.

With the new version I'd like to have the reports in VBA instead of a macro. However, VBA isn't liking the whole, open it but not if it's empty thing and is giving me an error "The OpenReport action was canceled."

Do I have to go back to a macro or is there a way around this? I like using the reports because I can use the header for a short description of what the query was looking for.

TIA,
Monica
Kevin Robertson  @Reply  
          
3 years ago
Click on the debug button in the error message.
This will bring you to the place in your code which generated the error.
Add On Error Resume Next above the highlighted line.
You will be in break mode so click the Reset button on the toolbar to continue.
Monica Jones OP  @Reply  
       
3 years ago
Thank you!! I was out of the office Friday so wasn't able to implement this until just now and it works perfectly. :)

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/7/2026 11:20:17 PM. PLT: 0s