Results 1 to 9 of 9
  1. #1
    PinkLady50 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2017
    Posts
    171

    Filter multiople subbforms based on criteria from main form

    I have a report with multiple subreports. It is setting and linking together. I am getting too much data in my subreports and I need to filter the subreports on two fields: ContractNum and TaskOrder. Right now the subreports are giving me data for all contracts and taskorders but I need it to provide data for each ContractNum and TaskOrder that ties to the IssueKey on the subreports.Main Report


    MTFDTF Contractor ContractNum Task Order etc

    SubReport (this report is based on a query where the IssueKey is "P") There are a total of 5 subreports all setup with IssueKeys of "V", "C", "H", "T"

    Description ContractorReason ContractorOnset ContractorResolved


    The subreport is showing all records with an IssuesKeys of "P" but I want to filter it so that for each ContractNum and TaskOrder only the associated "P" issues are listed. This would be the same for all the other IssueKeys.

    I have included a document with my report layout and the main report query and one subreport query.

    I would appreciate any help you can provide.
    Attached Files Attached Files

  2. #2
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Link the subreports to the main report using the Link Master and Link Child properties on the subreport object.

  3. #3
    PinkLady50 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2017
    Posts
    171
    I am linking them with the IssueID and both the main and subreports are running. Now I need to filter the subreport to only provide information for each ContractNu and TaskOrder.

  4. #4
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Link them using those fields as well.

  5. #5
    PinkLady50 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2017
    Posts
    171
    How do I link them? The Master/Child only has one field.

  6. #6
    PinkLady50 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2017
    Posts
    171
    Do I link them through the query?

  7. #7
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Link them:
    field1;field2;field3

  8. #8
    PinkLady50 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2017
    Posts
    171
    Thanks a million! I didn't realize I could add multiple criteria to the links!

  9. #9
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    YW. Sorry it took me so long to realize your issue!

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

Similar Threads

  1. Filter main form based on subform data
    By Varda in forum Forms
    Replies: 9
    Last Post: 01-02-2015, 10:40 PM
  2. Replies: 4
    Last Post: 12-29-2014, 01:53 PM
  3. Subform Filter based on Main Form Information
    By james.carpenter2 in forum Forms
    Replies: 0
    Last Post: 02-16-2011, 09:55 PM
  4. Replies: 1
    Last Post: 11-16-2010, 08:42 AM
  5. Replies: 6
    Last Post: 06-03-2009, 02:01 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