Link to home
Start Free TrialLog in
Avatar of mrong
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
Avatar of frodoman
frodoman
Flag of United States of America image

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?
Avatar of mrong
mrong

ASKER

Yes:-)
ASKER CERTIFIED SOLUTION
Avatar of frodoman
frodoman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mrong

ASKER

frodoman,

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?
Avatar of mrong

ASKER

frodoman,

I have the following fields in the group header. funding_code,bill_date,acct,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
What is it that you want to suppress?
Avatar of mrong

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...
Avatar of mrong

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
Avatar of mrong

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.
Rt-click on the field and select 'format'.  On the 'common' tab there is a property for suppress - put the formula in that button.
Avatar of mrong

ASKER

I mean the field in hardcoded text.
Avatar of mrong

ASKER

I put the following and it returned me error.
( {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.
Avatar of mrong

ASKER

Thank you frodoman!