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 
Show Button in Subform
Caleb Hansen 
        
3 years ago
I have a form "AssemblyGroupF" that list various assemblies that are part of a group in a continuous subform, similar to how Richard has the Product Groups on the OrderF in Developer 25. I added a "Show" checkbox field in the continuous subform so that the user could have that particular assembly listed with the description of that Assembly Group if they want. How might the VBA look with this? I started writing it and realized I needed to possibly do a recordset loop to lookup each "Show" field Boolean value and then somehow have the Assembly Name added to a string that gets attached to the end of the Assembly Group Name: Example, if any records in the subform
has the "Show" checkbox checked then "CustomName" = "AssemblyGroupName" + ":" + "AssemblyName" + "AssemblyName".... for however many Assemblies Checkboxes got checked. Here is a snapshot of the form.

Caleb Hansen OP  @Reply  
        
3 years ago

Kevin Robertson  @Reply  
          
3 years ago
Build the SQL string for the Record Source of your Subform with a WHERE condition that looks at the value of the Check Box.

Richard has some great examples on how to do this.

Search Form 2.0
Access Developer 26

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/16/2026 7:29:51 PM. PLT: 0s