Results 1 to 2 of 2
  1. #1
    lisa071 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2015

    Filter dual-column combo box

    I have a form with two combo boxes. I want the second combo box (cboAffDBD) to filter based on the selection of the first combo box (cboStation). Furthermore, I want the second combo box to display two of its fields from the table. I was able to show the two columns, now I am trying to filter the results.

    Initial code for viewing two columns in one combo box:
    SELECT DISTINCT [tblDBD].[ID], [tblDBD].[station] & " " & tblDBD.prefix FROM tblDBD;

    Now trying to filter the results based on the the selection of cboStation:
    SELECT DISTINCT [tblDBD].[ID], [tblDBD].[station] & " " & tblDBD.prefix FROM tblDBD WHERE station = [forms]![frmChangeRequests].[cboStation].[value];


  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    The Great Land
    The second combobox RowSource does not make sense. It is the same fields as first combobox. Review
    How to attach file: To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Dual language message box
    By Derrick T. Davidson in forum Programming
    Replies: 1
    Last Post: 07-10-2013, 07:11 AM
  2. need to filter a column in a subform
    By gregu710 in forum Forms
    Replies: 6
    Last Post: 02-21-2012, 05:19 PM
  3. Replies: 1
    Last Post: 12-03-2011, 01:26 AM
  4. Grouping dual keys in Access 2007 Report
    By bengineer in forum Reports
    Replies: 4
    Last Post: 02-01-2011, 02:09 PM
  5. Filter form by column
    By smikkelsen in forum Forms
    Replies: 10
    Last Post: 04-27-2010, 10:46 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 - Senior Forums