troubleshooting Question

Crystal Report select distinct record grayed out

Avatar of Taras
TarasFlag for Canada asked on
Crystal Reports
6 Comments1 Solution3733 ViewsLast Modified:
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
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros