Results 1 to 10 of 10
  1. #1
    TahaSarhan is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2011
    Posts
    5

    combining reports


    Hi folks,

    How to combine two different reports in one report. The two reports are related through client's name and cycle.

  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,951
    Use subreports. Either one of these is the Master (main report) and one the Child (subreport) or both are Children.
    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.

  3. #3
    TahaSarhan is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2011
    Posts
    5
    Subreports are very nice idea. It worked but how can I get the summation of some fields to be displayed at the main report.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,951
    Depends on your data and report structure. Just went through similar issue with another poster. My recommendation for that situation was for both main form and subform to have RecordSource that joined the same tables with same filter criteria. The main form would aggregate the data for grand total and subform did its own grouping/sorting/aggregate calcs.
    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.

  5. #5
    TahaSarhan is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2011
    Posts
    5
    I have made a query that includes both data, But there were some data duplications. I am trying to stop the duplications of data

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,951
    Then possibly your structure does not accommodate that solution. Every attempt I have made to have main report refer to subreport summary data has failed. If it can be done, I haven't found the right syntax. Might need to use DSum function in textbox on main report. Do you want to provide project for analysis? You could make copy, remove confidential data, run Compact & Repair, zip if still large, attach to post.
    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.

  7. #7
    TahaSarhan is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2011
    Posts
    5
    Here it is

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,951
    You did not include the report/subreport in the project. There are two separate reports and they are very long. Are these the ones you want 'combined'. I was able to figure out the syntax for main report to get total from subreport. But why - the value shows on the subreport.

    Why is there a command button on one of the reports?
    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.

  9. #9
    TahaSarhan is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2011
    Posts
    5
    Those are the two report I want to combine. The data are shown in the subreport but I need to have the summation and when details are needed I would go to the subreport.
    Also I want to difference between what is paid to what we owe them would be shown in the main report

  10. #10
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,951
    Here is how I reference total from subreport on main report.

    1. Name the subreport container control different from the report it holds, like ctrPayments

    2. In textbox ControlSource on main report footer: =Forms!mainformname!ctrPayments!subformtextboxname . I can't view your project now so don't have the actual names, replace accordingly.
    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. Combining first and last name
    By JRINC in forum Forms
    Replies: 3
    Last Post: 09-27-2011, 01:18 PM
  2. Reports w/ sub-reports very slow to open
    By vaikz in forum Reports
    Replies: 2
    Last Post: 02-27-2011, 08:41 AM
  3. Access Reports drop sub-reports
    By Kevin Ellis in forum Reports
    Replies: 0
    Last Post: 11-19-2010, 03:28 PM
  4. Combining fields
    By cotri in forum Forms
    Replies: 2
    Last Post: 01-18-2010, 12:06 PM
  5. Help combining 3 tables
    By luscioussarita in forum Queries
    Replies: 1
    Last Post: 12-14-2005, 03:22 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