Computer Learning Zone CLZ Access Excel Word Windows

The downside of my celebrity is that I cannot go anywhere in the world without being recognized. It is not enough for me to wear dark sunglasses and a wig. The wheelchair gives me away.

-Stephen Hawking
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Visitor Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Controls in a Subreport
brian Hewitt 

9 months ago
HI Guys

I have a textbox in my reports located in the subreport header01 section which I want to make visible.true or false.

Stuck for vba code that reaches this textbox from the parent form.
A little help would be great please...

Brian Hewitt
Richard Rost  @Reply  
           
9 months ago
The tricky thing with reports in Access is that they don't behave like forms. When Access generates a report, it renders the subreports first. So by the time any events fire in the parent report, the subreports are already finished rendering. That means you can't dynamically change something like a textbox in a subreport's header from the parent report at runtime.

If you need to control the visibility of a control inside a subreport, the best approach is to have the logic handled inside the subreport itself, or pass in the needed values before the report is opened. One way to do this is to place the controlling values on a form and reference them directly in your report (for example, =Forms!MyForm!SomeValue). Another option is to open the report using VBA and pass parameters using OpenArgs, then have the report read those on load.

You might even consider opening a hidden form in the background just to hold the values the report needs.

This kind of behavior often trips people up, and honestly it might make for a good TechHelp video. I'll add it to my list.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Visitor 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/8/2026 1:15:33 PM. PLT: 0s