Results 1 to 3 of 3
  1. #1
    yrstruly is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2024
    Posts
    122

    Filter Multiple Drop Downs

    I have this join that display theIP OWNER, PLANT ID and Cultivar. For some reason im not geting the selection correct from Plant id.
    When i filter on a IP OWner, the dropdown for PlantID, must only show those related. Please VBA update ect.
    The problem is:
    When I choose an IP Owner from the combo box, the PlantID combo updates correctly, but the other text fields (e.g. Cultivar, Clone, etc.) are not populating. I'm unsure how to correctly bind the other fields (Cultivar, Clone, IP Number) to populate based on the PlantID selection after filtering by IP Owner.



    Code:
    SELECT
    TblLicence.PlantID,
    Plants.Cultivar,
    Plants.Clone,
    TblLicence.Nr AS IP_Number,
    Profile.Display AS IPOwner
    FROM
    (TblLicence
    INNER JOIN Plants ON TblLicence.PlantID = Plants.PlantID)
    INNER JOIN Profile ON TblLicence.Nr = Profile.Nr;
    PlantID Cultivar Clone IP_Number IPOwner
    Ab0075 Goldenl.REINDERS® I 7930 761 NAKo

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,550
    Bring in the data with plantid and in the after update of that, set your textboxes.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,250
    You could add the Cultivar, Clone, IP Number to the PlantID row source then simply use them as the control sources for the textboxes like in =[PlantID].Column(1) (this would be the second column of the row source).
    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 04-20-2016, 11:47 AM
  2. Drop downs error on clear
    By Ruegen in forum Programming
    Replies: 2
    Last Post: 10-31-2013, 12:40 AM
  3. database design: conditional drop-downs?
    By sebeckett in forum Access
    Replies: 5
    Last Post: 09-05-2011, 12:46 PM
  4. Collecting data via email with drop downs
    By tlyons in forum Access
    Replies: 2
    Last Post: 01-19-2011, 10:34 AM
  5. Drop downs and serching in subforms
    By joelwebster in forum Forms
    Replies: 0
    Last Post: 12-13-2009, 03:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums