mrong
asked on
Suppress in header section of Crystal Report 9
Greeting,
I try to use the Suppress feature in CR9.0 to avoid the duplicate records but failed. (Format field->common->suppress if duplicate). It is in group header section.
Thanks in advance.
-M
I try to use the Suppress feature in CR9.0 to avoid the duplicate records but failed. (Format field->common->suppress if duplicate). It is in group header section.
Thanks in advance.
-M
Suppress if duplicate may not work for this because it looks at the previous record to determine if this one is a duplicate - sounds like you want to suppress based on the previous group, is that correct?
ASKER
Yes:-)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
frodoman,
I tried your suggestions but it didn't work. I still see the duplicates.
Thanks.
I tried your suggestions but it didn't work. I still see the duplicates.
Thanks.
Can you explain how your report is organized and what you are trying to suppress? Also, why do you have duplicate groups in the first place?
ASKER
frodoman,
I have the following fields in the group header. funding_code,bill_date,acc t,amount.
Basically, acct and amount will be different and other fields will be the same. the reason I am using grouping because I calculate the sum of amount for the same acct.
Thanks.
-M
I have the following fields in the group header. funding_code,bill_date,acc
Basically, acct and amount will be different and other fields will be the same. the reason I am using grouping because I calculate the sum of amount for the same acct.
Thanks.
-M
What is it that you want to suppress?
ASKER
I want to suppress funding_code and bill_date.
Do you just have one grouping in your report? Also, can you show me a sample of what it looks like now? Just a quick & dirty text example that you can post here so I can see how the group fields exist...
ASKER
Acct_desc funding_code bill_date acct amount
warehouse 111111 07/19/2007 00121 101
warehouse 111111 07/19/2007 00156 189
warehouse 111111 07/19/2007 08656 65
warehouse 111111 07/19/2007 00121 101
warehouse 111111 07/19/2007 00156 189
warehouse 111111 07/19/2007 08656 65
ASKER
frodoman,
My bad, I put the formula into "Suppress if duplicated". It should be in 'Suppress".
how to suppress if it is a text field?
Thanks.
My bad, I put the formula into "Suppress if duplicated". It should be in 'Suppress".
how to suppress if it is a text field?
Thanks.
Rt-click on the field and select 'format'. On the 'common' tab there is a property for suppress - put the formula in that button.
ASKER
I mean the field in hardcoded text.
ASKER
I put the following and it returned me error.
( {text6} = Previous({Text6}) )
Thanks.
( {text6} = Previous({Text6}) )
Thanks.
You can't suppress hard coded text based on the text itself. You can however suppress hard coded text based on database fields. So if you want to suppress the text object, use the same formula that you use to suppress the fields: ( {table.field} = previous({table.field})
You can use any fields as conditions in your suppression formula - you don't have the use the actual field you want to suppress.
You can use any fields as conditions in your suppression formula - you don't have the use the actual field you want to suppress.
ASKER
Thank you frodoman!