Results 1 to 4 of 4
  1. #1
    ariansman is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2013
    Posts
    57

    How to use a data in the subreport

    I have made a report, to list the employee data as the main report. In one field the employee salary is mentioned. At the end of the field the sum of all employee salaries is shown in a box.


    I put a subreport to list the Managers and in one column their salary is shown, with the related sum at the end.
    There is a second subreport listing the company costs for different items. Again, the sum of all costs is shown in a box at the end of the field of the itemcosts.

    My question: how can we add “sum of employee salaries” and “sum of managers salaries” and “sum of the item costs” ? In other words I need a data from one subreport to be added to another data from sunreport and also to a data in the main from.

    All the above reports and subreports come from different unrelated tables.

    Thank you

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Each subreport has a Sum in the Report footer section?

    A textbox on main report can reference each subreport footer textbox in an expression.
    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
    ariansman is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2013
    Posts
    57
    Quote Originally Posted by June7 View Post
    Each subreport has a Sum in the Report footer section?

    A textbox on main report can reference each subreport footer textbox in an expression.
    yes, each subreport has a sum in their respective footer section. lest say : sum([employeesalary]) in the main report and sum([managersalary]) and sum([companycosts]) in subreprots.
    can you help me how can i write an expression to reference each sum from the subreports and main report?
    thank you

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Try:

    = subreportname1!textboxname + subreportname2!textboxname + subreportname3!textboxname
    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: 1
    Last Post: 10-25-2013, 03:07 PM
  2. Replies: 1
    Last Post: 04-15-2013, 10:02 AM
  3. Only Show Subreport with Data
    By jkirkman in forum Reports
    Replies: 11
    Last Post: 04-01-2012, 12:35 PM
  4. Getting data in 2 columns in subreport
    By opopanax666 in forum Reports
    Replies: 2
    Last Post: 01-27-2012, 01:56 AM
  5. Subreport will not show specific data
    By mitchy1111 in forum Reports
    Replies: 1
    Last Post: 05-18-2011, 07:36 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