Results 1 to 2 of 2
  1. #1
    Evilferret is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    27

    Subreport with criteria from main report

    I'm building a report with a subreport.

    My subreport will have the same criteria as my main report does. How do I have my main report pass the criteria to the subreport?

    EDIT: Oops, wrong forum. Sorry.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    What criteria? Why would main and subreport have same criteria other than the pk/fk? Have you set the Master/Child links properties of the subreport container control?

    Or are both using the same source data (not master/child associated records), just displaying different arrangements?

    Several ways to pass same criteria to both.

    1. RecordSource query can have criteria parameters referencing input into controls on a form.

    2. Set Filter property

    BTW: I moved thread to Reports forum.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 7
    Last Post: 07-26-2012, 12:18 AM
  2. Replies: 3
    Last Post: 06-15-2012, 11:14 AM
  3. Replies: 1
    Last Post: 02-10-2012, 05:15 PM
  4. Combine Main Report with subreport
    By jortizz in forum Reports
    Replies: 2
    Last Post: 05-05-2011, 12:42 PM
  5. Replies: 4
    Last Post: 03-14-2011, 11:12 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