Results 1 to 5 of 5
  1. #1
    barryg80 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2013
    Posts
    22

    Complicated filter on combo box!

    Hi there,

    Maybe this won't be complicated for some of you guys but it is for me!

    I am trying to figure out how to get a combo box to filter a form with a many to many relationship in the middle. ERD image attached. The filter is to be applied on the partner field in the clients table with the main form then displaying directors linked to that partner. The in a subform you are shown the income tax details for that director
    .


    I can do it for a regular one to many relationship by basing the main form on a query of the clients table and then setting the query criteria for the partner field to [forms]![FormName]![cboPartner]. Subform then displays the data relating to that partner.

    However with this one there is a M2M relationsip in play using the junction table and I am unsure as to how to get this working. Pointers much appreciated,

    Thanks



    Click image for larger version. 

Name:	ERD.jpg 
Views:	17 
Size:	49.6 KB 
ID:	16876

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    If the main filter is working, good. But do you need more filters after that. You can filter the sub form further , maybe using TAB controls?

    Click image for larger version. 

Name:	tabs.png 
Views:	15 
Size:	4.9 KB 
ID:	16877

  3. #3
    barryg80 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2013
    Posts
    22
    Thanks, have looked at that suggestion but its not a method I want, the rest of the application lets the users select using a drop down to filter so want to stick with that. So drop down to select the partner on the main form, i need to figure out how to then have a sub form display the directors relating only to that partner.

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Have you tried bringing the Key value from your junction table into your combo and the form's recordset?

  5. #5
    barryg80 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2013
    Posts
    22
    Not sure how so ItsMe. Will look at that this evening, thanks..

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

Similar Threads

  1. Replies: 4
    Last Post: 06-18-2014, 08:31 PM
  2. Replies: 1
    Last Post: 10-01-2013, 09:25 PM
  3. Filter Combo box - Help
    By mar_t in forum Forms
    Replies: 3
    Last Post: 01-31-2011, 07:08 AM
  4. filter value in a combo box
    By dada in forum Programming
    Replies: 3
    Last Post: 09-05-2010, 01:22 PM
  5. Combo Box Filter
    By jgelpi in forum Programming
    Replies: 3
    Last Post: 07-27-2009, 12:54 PM

Tags for this Thread

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