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 
Populate combo box with option group selection on
Tammie 

16 years ago
Hi Richard,
I am a beginner Access user and I am using 2007 version. I have an option group on my main form called OptionGrAgeCategory which has 2 choices: Neonatal and Adult. I have a combo box on a subform within this main form and it's called cboTypeofTherapy. I have 2 lookup tables that I'd like to populate the combo box with depending on user selection. So, for example, if the "Neonatal" option is chosen on the main form, then I would like to populate cboTypeofTherapy (on the subform) with data from the table NeonatalTherapy. If "Adult" is selected, then the combo box would be populated with data from the table AdultTherapy.

I am using If/Then/Else/End If to indicate RowSource changes of the combo box in the AfterUpdate of the Option group, but it's not recognizing the subform. I'm not sure how to correct this or if this is the right approach. Any help would be great.


Answer from Richard Rost:

This tutorial should help you. It's not EXACTLY what you're looking for, but it will get you started. Instead of populating the data in a 2nd combo box, you're just going to apply the same technique to the data in a subform or second form.

I get asked this question all the time. You've got two or more combo boxes and you want the first one to filter the second one. I get asked this so much that I recorded a video tutorial explaining how to do it:

http://599cd.com/tips/access/two-combo-boxes?key=BlFAlEx

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/31/2026 4:31:38 PM. PLT: 1s