I need to suppress duplicate records in crystal report.
For crystal report ver. XI R2 I have several tables and two commands for parameters.
I have several duplicate records I would like to suppress.
Option in File-> Report Option-> Select Distinct Records is grayed out as I am using commands and tables together and connecting direct to Access database.
I tried to work around with
Formula @Find_Duplicate:
If Previous({Fileld1}) = {Field1} And
Previous({Field2}) = {Field2} And
Previous({Field3}) = {Field3} And
Previous({Field4}) = {Field4} Then
“*”
Else
“”
And put text box in detail section and put formula there. Then in detail section I Suppress detail section if @Find_Duplicate = “*”
However I have problem with summary and sorting.
I am not sure if it summarizes those records even they are suppressed?
If I want to summarize on field4
If you sort fields by : Field1, Field2, Field3 then is ok.
If you sort in deterrent e.g. by Field4, Field1, Field2, Field3 that way you get different summary as duplicate are not suppressed.
How to solve this issue and get right summary
Our community of experts have been thoroughly vetted for their expertise and industry experience.