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 
Updating Sub Report From VBA
David Campbell 
     
9 months ago
I have a sub report that I want to have the font update to the saved report font name when opened.  It works when opened by itself.  When its a sub report in the main form it does not update.  I have used quite a few different methods. The sub report is in the Page or report footer based on report type.
David Campbell OP  @Reply  
     
9 months ago

Raymond Spornhauer  @Reply  
          
9 months ago
I've had issues with VBA not running in Sub-Reports.  I'm really hoping someone can address this as it will help me out as well.

-Raymond
Garry Smith  @Reply  
    
9 months ago
Watching
Kevin Yip  @Reply  
     
9 months ago
Some events are disabled in a subreport, such as the Detail Format event that runs every time a record is processed.  A subreport's Load event does not run, but the Open event does.  Mouse-related events do run in a subreport.  But crucially, the Detail events do not run in subreports.  The reason for all this is, I think, that a subreport is treated as a control, not a report per se.  (Confusingly, a subform *is* treated as a form, so all its VBA events work as usual.)

This is why I've never used subreports in reports.  When I create a report, I make sure all the data needed for the report are specified in the main report's record source, so I don't need a subreport to bring in additional data.
David Campbell OP  @Reply  
     
9 months ago
I ended up making unbound controls then using VBA to set values. After that I used the tag and sub in form load to set the control properties.  Works great.  I would have liked to make a sub report and get rid of all the extra controls. Oh Well.
Richard Rost  @Reply  
          
9 months ago
Yeah, subreports can be a beast. I avoid them. That's why, for example, I teach using a big query with all the joined data from OrderT and OrderDetailT when making an invoice instead of using a subreport. I'd rather use grouping levels in the report.

The only time I ever use subreports is if I want to bring together completely different types of data. For example, I want to show a customer as the parent report, and then one subreport might show all of his contacts, a second subreport might show all of his orders. A third subreport might show all of the service technicians that have worked on his account. That kind of thing. Those three items, even though they're related to the customer, they're not things you can just bring together easily in a big query.

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