Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > TechHelp > Directory > Access > ChatGPT VBA Code < Parent Record | Database Launcher >
Back to ChatGPT VBA Code    Comments List
Upload Images   @Reply   Bookmark    Link   Email  
Loving ChatGPT
Sandra Truax 
         
2 years ago
After struggling for HOURS trying to get the correct header on my report and having problems because it had sum[Mileage] as part of the field so I couldn't set it from the form, I created and stacked a header for each of my three categories, but could NOT figure out how to hide the two I didn't need depending on which button I clicked, so I finally asked GPT.  Thier answer worked perfect!

Private Sub btnOpenReport_Click()
    DoCmd.OpenReport "MileageR", acViewPreview
    Reports("MileageR").Controls("KennelHeader").Visible = False
    Reports("MileageR").Controls("MedicalHeader").Visible = False
End Sub

This thread is now CLOSED. If you wish to comment, start a NEW discussion in ChatGPT VBA Code.
 

 
 
 

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 2025 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/16/2025 3:56:29 PM. PLT: 1s