×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Summing Value In Main Report that was Passed From SubReport

Summing Value In Main Report that was Passed From SubReport

Summing Value In Main Report that was Passed From SubReport

(OP)
Hi,
I have a report that is making me pull my hair out!! I'm way past my due date and seriously stressed. Can someone take pity on me and help with what I know is an easy thing for someone who is familiar with this type of issue?

I have passed a value from a subreport back to the main report, and I can accumulate this value, but I cannot get the formulas set up correctly in the main report to reset this value at the appropriate group change. My report looks like this:
Group Header #1 District
Group Header #2 Site
Group Header #3 Project
Group Header #4 Program
Details
Group Footer #4a Subreport (displays data and shares the subreport total with the main report)
Group Footer #4b Program (Subtotal for this program and displays the subreport total)
Group Footer #3 Project (Subtotal for this project and should display the subreport total for the project)
Group Footer #2 Site (Subtotal for this site and should display the subreport total for the project)
Group Footer #1 District (Subtotal for this district and should display the subreport total for the district)
Report Footer Grand Total

The areas in red are the ones that I cannot get to work correctly. I know that I need formulas to accumulate the value and reset the value, but I am completely out of ideas on how to get this to work. Some expert advice would be greatly appreciated!
By the way, I am using Crystal 2016. Thanks!

RE: Summing Value In Main Report that was Passed From SubReport

In the accumulation formula in your subreport, add a separate shared variable for each group level, and have it accumulate the same way you accumulate for the program level. Then create four reset formulas corresponding to each group level and place the appropriate reset formula in the corresponding group header. Create four display formulas, one for each group footers and corresponding to the variable for that group.

-LB

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close