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 
Third level filter for subform
Joseph Dolbear 
    
3 years ago
Im stumped on how to have my subcategory selection filtered for a selected category on a sub form for adding transaction line items. This DB is a transaction entry for expenses, i.e. went shopping at Walmart and bought groceries, furniture, medications, automotive supplies and I am tracking when my money went.
Category may be Food, Utilities, Auto Expenses, Healthcare, Medications, etc.
Subcategory may be associates with the category or may be null (no subs) and I have that working OK.
The problem is that I need to filter for only food items in the subcategory combo select list when the category = Food, or Medications when Category is Medications based on the field Category Type in Subcategories table, or just other subcat items if they are not food or medications.
Im just beginning to learn VBA and cannot figure out how to write this code and apply it to the combo box for a third level filter.
Any gurus out there that can help with this?
Kevin Yip  @Reply  
     
3 years ago
The video on cascading combo boxes should help:  https://www.599cd.com/blog/display-article.asp?ID=1749
Joseph Dolbear OP  @Reply  
    
3 years ago
I am using a cascading combo but this only addresses a second level structure. I have combined my data to have this work with the entire dataset but this is not ideal.
Kevin Yip  @Reply  
     
3 years ago
The basic principle is the same whether a cascading set of combo boxes have 2, 3, 4, or more levels.  When the top-level combo box's value is changed, you need to requery all the lower-level combo boxes.  In your case, when 1st level value is changed (in the AfterUpdate event), requery the 2nd- and 3rd-level combo boxes; when 2nd-level is changed, requery the 3rd-level.

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/6/2026 7:43:51 AM. PLT: 1s