Results 1 to 9 of 9
  1. #1
    goodguy is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Dec 2010
    Location
    Zanzibar, Tanzania
    Posts
    229

    Bi-directional filtering of cascading combos

    I have a chain of 3 tables with 1-M relationships where only the most immediate foreign key is carried forward, as follows:
    Table1: Table1PK and fields
    Table2: Table2PK, Table1FK and fields
    Table3: Table3PK, Table2FK and fields
    Table4: Table4PK, Table3FK and fields.
    So if I know the values of Table4PK and Table3FK, I can find Table2FK and Table1FK by tracing upward. So far, so good.

    I am trying to make the form for Table4 more friendly by offering users the option to start drilling down from comboTable1PK, whose value filters the recordsource for comboTable2PK and so on.

    Only Table4 records are bound (for updates). For new records, this seems to work fine. However when scrolling through the current records, I want comboTable2PK and comboTable1PK to populate based on the value of comboTable3PK.

    How can I implement bi-directional filters on the same three comboboxes:


    1. Filter the recordsource of the child combobox when the parent combo value changes in AddNew or Edit modes.
    2. Set the parent combo value when the child combo value changes in Normal mode.

    N.B: I am not using the AfterUpdate or Changed events to filter the recordsources, simply set the filter in the query.

  2. #2
    goodguy is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Dec 2010
    Location
    Zanzibar, Tanzania
    Posts
    229
    Any help will be appreciated. I hope this question is not very hard to understand.

  3. #3
    goodguy is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Dec 2010
    Location
    Zanzibar, Tanzania
    Posts
    229
    Is this too complicated for all the pros out here?

  4. #4
    Deaner117 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2015
    Posts
    2
    I know this thread is ages old, but I'm also interested in accomplishing this.

  5. #5
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    @ Deaner117
    What you have done is called "Hi-jacking a thread".
    You should start your own thread and reference this post in your question. You will get more responses since your thread (question) will be newer.

  6. #6
    CJ_London is online now VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    google 'cascading combo boxes'

  7. #7
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by ssanfu View Post

    ...You will get more responses since your thread (question) will be newer...
    And hopefully, you'll be able to describe exactly what you're trying to do, much better and more succinctly, than the original poster did; you'll notice that the thread has been viewed over 600 times but no one responded until your post...almost assuredly because no one could understand the question that was being posed.

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  8. #8
    Deaner117 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2015
    Posts
    2
    Thanks guys. I'll make a new post. @Ajax I have, and I get a lot of something that I'm not looking for.

  9. #9
    CJ_London is online now VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    I get a lot of something that I'm not looking for.
    demonstrates the effect of not providing a clear description of what is required

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

Similar Threads

  1. Cascading field
    By Roger81 in forum Queries
    Replies: 2
    Last Post: 08-02-2011, 11:20 AM
  2. Filtering options using Cascading Combo boxes
    By Lincoln in forum Database Design
    Replies: 3
    Last Post: 07-15-2011, 08:25 PM
  3. Replies: 0
    Last Post: 12-20-2010, 12:35 PM
  4. cascading drop down
    By ManvinderKaur in forum Forms
    Replies: 1
    Last Post: 06-23-2010, 05:31 PM
  5. Cascading ?
    By dlburkins in forum Forms
    Replies: 5
    Last Post: 09-27-2009, 04:41 AM

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