Results 1 to 14 of 14

Thread: [RESOLVED] Need help about crystal report record number

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2013
    Posts
    328

    Resolved [RESOLVED] Need help about crystal report record number

    I NEED HELP ABOUT CRYSTAL REPORT RECORD NUMBER.

    EXAMPLE :

    1. BRYAN
    2. VINCE
    3. ROME
    -. ROME - if name is duplicated, skip to next record
    4. LETTY
    5. MIA
    -. MIA - if name is duplicated, skip to next record

    How do i do something like this?

  2. #2
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: Need help about crystal report record number

    To eliminate the repeated record: Insert a Group on the field you want to manage and use the group header section instead of detail section
    To count the records : You could use a formula field, a simple accumulator, and place it in the group header section
    JG


    ... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2013
    Posts
    328

    Re: Need help about crystal report record number

    Quote Originally Posted by jggtz View Post
    To eliminate the repeated record: Insert a Group on the field you want to manage and use the group header section instead of detail section
    To count the records : You could use a formula field, a simple accumulator, and place it in the group header section
    is there any other solution? i dont know where to start.

  4. #4
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: Need help about crystal report record number

    JG


    ... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    May 2013
    Posts
    328

    Re: Need help about crystal report record number


    I have tried to experiment with these codes, it counts but not the first record, counting skips to second record.

    BRYAN
    1. VINCE
    2. ROME
    -. ROME
    3. LETTY
    4. MIA
    -. MIA

    FORMULA :

    WHILEPRINTINGRECORDS;

    NUMBERVAR CNT;

    IF PREVIOUS({TBL_PAYROLL.NAME}) <> {TBL_PAYROLL.NAME} THEN
    CNT:= CNT + 1

    what's wrong with this?

  6. #6
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: Need help about crystal report record number

    ...and what if you place the formula in the group header section
    Code:
    WHILEPRINTINGRECORDS;
    NUMBERVAR CNT;
    CNT:= CNT + 1;
    it will count only 1 every group
    JG


    ... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    May 2013
    Posts
    328

    Re: Need help about crystal report record number

    Quote Originally Posted by jggtz View Post
    ...and what if you place the formula in the group header section
    Code:
    WHILEPRINTINGRECORDS;
    NUMBERVAR CNT;
    CNT:= CNT + 1;
    it will count only 1 every group

    It needs to be count on details section and skip duplicates but duplicated records needs to show.

  8. #8
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: Need help about crystal report record number

    No, you need to count on every header group section
    ...place the formula on details section
    ...and check "Suppress If Duplicated Display String" in Common tab from Format Editor dialog window
    JG


    ... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    May 2013
    Posts
    328

    Re: Need help about crystal report record number

    Quote Originally Posted by jggtz View Post
    No, you need to count on every header group section
    ...place the formula on details section
    ...and check "Suppress If Duplicated Display String" in Common tab from Format Editor dialog window
    what code should I use for the formula?

  10. #10
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: Need help about crystal report record number

    Quote Originally Posted by morbid.ivan View Post
    what code should I use for the formula?
    See post #6
    JG


    ... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...

  11. #11

    Thread Starter
    Hyperactive Member
    Join Date
    May 2013
    Posts
    328

    Re: Need help about crystal report record number

    Quote Originally Posted by jggtz View Post
    See post #6
    Can you please see the attached file and see what's wrong with it.

    I hope you can help me. Thanks in advance.
    Attached Files Attached Files

  12. #12
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: Need help about crystal report record number

    Sorry morbid.ivan but my antivirus does not let download your attachment!
    JG


    ... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...

  13. #13
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: Need help about crystal report record number

    Here goes a small example
    It's resolved using RunningTotal field ...but we need to group the records
    Attached Files Attached Files
    JG


    ... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...

  14. #14

    Thread Starter
    Hyperactive Member
    Join Date
    May 2013
    Posts
    328

    Re: Need help about crystal report record number

    Quote Originally Posted by jggtz View Post
    Here goes a small example
    It's resolved using RunningTotal field ...but we need to group the records
    Thank you. You're a big help .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width