Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Forums > Access
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email  
Combo Box
Lizelle Henrico 
      
7 months ago
I have a form where I want to duplicate one combo box based on a list of Organ Systems (OrganSystemsT) and should return the value in the Stressors Field linked to the particular Organ System. It is for a report where I need to add the info for at least 2 of the client's distressed organ systems. I tried many ways but its not working. When I select the item in the first combo box it changes the second combo box to the same item and info. I named the combo boxes differently and did after update event for each combo box.

Row Source for both Combo Boxes(
SELECT OrganSystemsID, OrganSystems FROM OrganSystemsT ORDER BY OrganSystems;

Code for both combo boxes

Private Sub Stressors1CMB_AfterUpdate()
    
    Me.Stressors = DLookup("Stressors", "OrganSStressorsT", "OrganSystemsID=" & Me.Stressors1CMB)

End Sub

Private Sub Stressors2CMB_AfterUpdate()

    Me.Stressors = DLookup("Stressors", "OrganSStressorsT", "OrganSystemsID=" & Me.Stressors2CMB)

End Sub
Lizelle Henrico OP  @Reply  
      
7 months ago

Lizelle Henrico OP  @Reply  
      
7 months ago

Lizelle Henrico OP  @Reply  
      
7 months ago

Lizelle Henrico OP  @Reply  
      
7 months ago

Lizelle Henrico OP  @Reply  
      
7 months ago

Kevin Yip  @Reply  
     
7 months ago
Your two combo boxes have the same control source, and that's why they always have the identical value.  Giving them different names doesn't help; it is the control source, or lack of it, that determines their values.  This is not a shortcoming, but how things fundamentally work on a form or report.
Juan Rivera  @Reply  
           
7 months ago
Take a look t Richards contact set up you can have the stressor in the continues form and notes on the bottom.  for the report you can set up to show the two

Combo Box
Relationships
Contacts

Lizelle Henrico OP  @Reply  
      
7 months ago
Thank you.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

 
 
 

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/22/2025 3:18:11 PM. PLT: 0s