how to filter list of items in a combo box by selecting items in another combo

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mmwit
    New Member
    • Jan 2013
    • 15

    how to filter list of items in a combo box by selecting items in another combo

    dears!

    I want to list provinces and districts, and want when I selec province 1 all the districts of provinces should only be shown to me in the district combo, and if I select the 2nd province in the province combo the disctrict combo should list me the names of districts belong to 2nd province

    also attached is the file, hope this help you

    and yeah I should remind you dears, that the app is again Access 2010
    [imgnothumb]http://bytes.com/attachments/attachment/6866d1359438355/relationship.jp g[/imgnothumb]
    Attached Files
    Last edited by NeoPa; Jan 31 '13, 11:04 PM. Reason: Made pic viewable.
  • TheSmileyCoder
    Recognized Expert Moderator Top Contributor
    • Dec 2009
    • 2322

    #2
    This type of question has been asked over and over again. Please check out http://bytes.com/topic/access/insigh...mbo-list-boxes and also Example: Filtering on a form and if you still have questions come back with them.

    Comment

    • NeoPa
      Recognized Expert Moderator MVP
      • Oct 2006
      • 32633

      #3
      Another one, for this specific issue, is Cascaded Form Filtering.

      Comment

      • zmbd
        Recognized Expert Moderator Expert
        • Mar 2012
        • 5501

        #4
        Although related, I've moved the posts by dgalter and Seth into thier own thread: Cascading Combo Box Filtering.
        Last edited by NeoPa; Jan 31 '13, 11:03 PM. Reason: Updated link to show thread name.

        Comment

        • NeoPa
          Recognized Expert Moderator MVP
          • Oct 2006
          • 32633

          #5
          A set of posts that started with a hijack have been moved to a new thread (How do I Use Cascaded Filters).

          Comment

          • mmwit
            New Member
            • Jan 2013
            • 15

            #6
            thanks for your replies I'm working on and will reply you all dear developers about the result, onething more I wanted to mention you all, is it effect anything on having primary keys on both tables, which are in a relationship to each others,

            see above pictures I uploaded

            Thanks

            Comment

            • zmbd
              Recognized Expert Moderator Expert
              • Mar 2012
              • 5501

              #7
              mmwit:
              That question is barely related to your orignial post...
              But is yet a seperate question.
              As such it should be in a new thread. You can always include a link to the old thread should you wish to have that information as a reference.

              I must insist that you read the following links.
              You will be expected to follow the guidlines set forth in them for all future posts:
              Before Posting (VBA or SQL) Code.
              How to ask "good" questions -- READ BEFORE SUBMITTING A QUESTION!.
              POSTING_GUIDELI NES: Please Read Carefully Before Posting to a Forum.

              I have also sent you PM

              Comment

              Working...