Results 1 to 2 of 2
  1. #1
    system243trd is offline Novice
    Windows 2K Access 2003
    Join Date
    Nov 2011
    Posts
    27

    VBA Code to filter values on a combo box from another combo box

    I have a form containing two combo boxes that use two SQL stored procedures to return data. When the form opens, information for both form is retrieved.
    Field1
    Field1
    A
    B
    C
    Field2
    ColumnA ColumnB
    A Answer1
    A Answer2
    A Answer3
    B Answer4
    B Answer5
    C Answer10
    I have hidden Column A for field 2 by adjusting the widths.
    Please could someone provide me with the VBA code after field 1 has been updated, to filter ColumnB based on Field 1 matching on Field2ColumnA e..g if B is selected for field1, then Answer 4 and Answer 5 will be displayed.

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    Try searching the forum and google for "cascading combo boxes".
    This link may be of help: http://www.baldyweb.com/CascadingCombo.htm
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. Replies: 11
    Last Post: 09-03-2015, 11:12 AM
  2. Replies: 1
    Last Post: 10-01-2013, 09:25 PM
  3. Combo Box filter not showing values
    By Chatholo in forum Forms
    Replies: 7
    Last Post: 08-01-2013, 08:53 AM
  4. Use Option Group to Filter Combo Box Values
    By dgj32784 in forum Programming
    Replies: 2
    Last Post: 06-06-2011, 12:04 PM
  5. Replies: 1
    Last Post: 04-27-2010, 09:30 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