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

    Filter Of Drop Down Slelection

    I want to select IP OWNERS, from a drop down, and relalted Cultivars must then load. Cultivars does not load.
    Please see sample data an form.

    https://drive.google.com/file/d/1hqb...ew?usp=sharing


    https://docs.google.com/document/d/1...f=true&sd=true

    Code:
    SELECT DISTINCT Plants.CultivarFROM Plants
    LEFT JOIN Profile AS Profile_Display ON Plants.IPOwner = Profile_Display.Nr
    WHERE Profile_Display.Display = Forms![Form_Plant Evaluation]!cboIPOwner
    ORDER BY Plants.Cultivar;

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,932
    not prepared to download from google, only uploaded files. remove forms/reports/tables/queries not relevant to your question, compact then zip using the upload facility (click on the go advanced button at the bottom of the window)

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    What you describe is cascading or dependent combobox/listbox - common topic.

    Code needs to Requery the second combobox or set its RecordSource property. Post your code behind Owners.

    Why is Cultivars combobox a query that joins tables? Why is Query missing a space in front of FROM?

    If you want to provide files, follow instructions at bottom of my post.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    yrstruly is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2024
    Posts
    122
    Thank you for the assistance. To get he IP Owner's name with their rspective IP Owners code, two tables are joined. Thats why Cultivars is a query that joins.
    Code:
    SELECT     Plants.PlantID,
        Plants.Cultivar,
        Plants.IPOwner,
        Profile_Display.Display AS [IP Eienaar],
        TblLicence.ConType,
        TblLicence.Renewable
    FROM 
        (TblLicence
        LEFT JOIN Plants ON TblLicence.PlantID = Plants.PlantID)
        LEFT JOIN Profile AS Profile_Display ON Plants.IPOwner = Profile_Display.Nr;

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

Similar Threads

  1. Replies: 40
    Last Post: 04-06-2020, 06:49 AM
  2. Replies: 3
    Last Post: 12-30-2011, 01:20 PM
  3. Replies: 3
    Last Post: 11-29-2011, 07:01 AM
  4. Filter available values in a drop down list
    By petitmorsalin in forum Access
    Replies: 1
    Last Post: 12-13-2010, 09:39 AM
  5. Replies: 19
    Last Post: 05-12-2009, 02:59 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