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 
Multirecord Subform Combo Box
Iain Gray 
    
3 years ago
In my database, I have a table called TopicTable. This has a many-to-many relationship to a table called TagTable. Each Topic can have multiple Tags, and these Tags can also be used for multiple Topics.

I have created a data entry form for TopicTable (TopicSingleForm) which contains a subform (TopicTagSubform) with a Combo Box (TagCombo) so people can choose multiple tags from the 30 or so available.

The TopicTagSubform is powered by a simple query.  

I have managed to create "Filter as you type" Combo Boxes in other parts of my database, but those are purely for "single entry" fields, and not fields where multiple entries can be added.

When I enter the Combo Box in the subform embedded on the TopicSingleForm data entry page, the list appears as it should, and when I type into the field, it shows the appropriate entries. I select one. But when I go to the next record in the subform to add a second Tag, the only dropdown entry remaining in the list is the one above that I have just selected.

I'm sure there's a way to clear the dropdown in the subform, so another record can be added, but I just don't know what that is.

My code is:

Private Sub TagCombo_Change()

    TagCombo.RowSource = "SELECT [TagTable].[TagName] " & _
        "FROM TagTable " & _
        "WHERE TagName Like ""*" & TagCombo.Text & "*"" " & _
        "ORDER BY [TagName];"
    SMESearch.Dropdown

End Sub

Thanks a million :)
Scott Axton  @Reply  
        
3 years ago
For the type of data you are speaking about I would suggest a Many-to-Many relationship.
Utilizing a continuous subform.

Also check out the Groups video.

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/7/2026 7:30:27 AM. PLT: 0s