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 
Print Rpt wo Queries Running
John Hirschy 
    
3 years ago
I have a Report that is loaded with information from many queries.  When opening the Report, all the queries run as expected.  When printing the Report that has already run all of the queries, all of the queries run again.  How do I prevent this second run of queries?
John Davy  @Reply  
         
3 years ago
Need to see the code to run the report
Kevin Yip  @Reply  
     
3 years ago
If the report needs the queries to work, they have to run.  If you want the queries to run just once for this particular report, you may consider saving the queries data in temporary tables, and having the report use the temporary tables' data.
Richard Rost  @Reply  
           
3 years ago
Are these action queries you're talking about? Need more info.
John Hirschy OP  @Reply  
    
3 years ago
The queries are not action queries.  The Report has numerous small forms that have queries filling the forms.  The Report is a status report of various operations occurring in the office by fourteen employees.  Since the composition of the Report is forms populated by data sorted by queries, there is no VBA code.  Again, when the report is opened all of the queries run filling in the forms which compose the report.  When the report is printed, all of the queries run again before the report actually prints.  I would like the report to print without the second run of the queries.
Kevin Yip  @Reply  
     
3 years ago
How do you first open the report?  If you first open it in preview mode, the queries are run.  When you actually print it to paper or to PDF, the report "runs" again and so do its queries.  That's just the way it is: a report needs data to do anything, and its queries need to run every time to get data.  If this is a performance issue, if you want to avoid running the queries because they take too long to run, then consider my suggestion in my previous post: use temporary tables to store the data generated by the queries, so the queries only have to run once.

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 2:25:08 AM. PLT: 1s