Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8712921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:12:55+00:00 2026-06-13T05:12:55+00:00

I have some question about crystal report pass value from sub report to parent

  • 0

I have some question about crystal report pass value from sub report to parent report.

Now I have a sub report group by userID.Now I want to Pass last row Data each UserID . forexample sub report like this:

UserID : Jack
           id     No    Time     Diff
           1      1    08:10       0
           1      2    08:20      10
           1      3    08:35      15
Last Row:  1      4    09:10      35 

UserID : Peter
           id     No    Time      Diff
           2      1     08:10       0
           2      2     08:40      30
           2      3     08:45       5
           2      4     08:55      10
Last row:  2      5     09:00       5    

Parent report need like this:

  UserID    No    Time     Diff
   Jack     4     09:10     35       (show last row for jack  in sub report)
   peter    5     09:00      5       (show last row for Peter in sub report)

How to pass last row for each user to parent ? How can I archive this function?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T05:12:56+00:00Added an answer on June 13, 2026 at 5:12 am

    I realize this is an old question, but hopefully this will still be of use to you.

    Since you are returning multiple values to the main report, and the number of total rows is undefined, it may be easier to do the following:

    • Create a second subreport that is a copy of the first subreport
    • In the detail section of the new subreport, add the following code to the Suppression formula for the detail section: Next ({YourTable.id}) = {YourTable.id}

    Basically, the formula will suppress the detail record if the next record’s id is the same as the current id. This way, only the last record for each id will be shown.

    You can format the detail line in the second subreport to appear how you want.

    The only downside to this is that the subreport will essentially run twice, so if it’s a slow report, your report just got slower.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i need to ask some question about crystal report. I have successfully run crystal
I have some question about WH_MOUSE. From what I've read, by putting the hook
I have some question about arrays, I'm reading some book about Java, and now
I have some question about functions which have default parameters. import sys from random
I have a question about regular expression sub in python. So, I have some
I want to make one question about oracle/sql query. I have some data like
So, i have some question about xml Documents in Java. Can i get all
I have a question about reflection I am trying to have some kind of
Quick question about include/requre_once . I have some code that is common to a
I have a question about some functionality I'm trying to add to my jQuery

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.