May 28th, 2013, 10:58 PM
#1
Thread Starter
Hyperactive Member
[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?
May 29th, 2013, 12:15 PM
#2
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 ...
Jun 17th, 2013, 03:34 AM
#3
Thread Starter
Hyperactive Member
Re: Need help about crystal report record number
Originally Posted by
jggtz
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.
Jun 17th, 2013, 08:52 AM
#4
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 ...
Jun 17th, 2013, 10:40 PM
#5
Thread Starter
Hyperactive Member
Re: Need help about crystal report record number
Originally Posted by
jggtz
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?
Jun 18th, 2013, 12:49 AM
#6
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 ...
Jun 19th, 2013, 12:05 AM
#7
Thread Starter
Hyperactive Member
Re: Need help about crystal report record number
Originally Posted by
jggtz
...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.
Jun 19th, 2013, 09:31 AM
#8
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 ...
Jun 19th, 2013, 09:57 AM
#9
Thread Starter
Hyperactive Member
Re: Need help about crystal report record number
Originally Posted by
jggtz
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?
Jun 19th, 2013, 10:28 AM
#10
Re: Need help about crystal report record number
Originally Posted by
morbid.ivan
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 ...
Jun 20th, 2013, 10:02 PM
#11
Thread Starter
Hyperactive Member
Re: Need help about crystal report record number
Originally Posted by
jggtz
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
Jun 20th, 2013, 10:13 PM
#12
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 ...
Jun 20th, 2013, 10:44 PM
#13
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
JG
... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...
Jun 21st, 2013, 12:25 AM
#14
Thread Starter
Hyperactive Member
Re: Need help about crystal report record number
Originally Posted by
jggtz
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
Forum Rules
Click Here to Expand Forum to Full Width