Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: duplicate records Post Reply Post New Topic
Author Message
sanchezgmc06
Senior Member
Senior Member
Avatar

Joined: 21 Jan 2011
Online Status: Offline
Posts: 107
Quote sanchezgmc06 Replybullet Topic: duplicate records
     Posted: 17 Jul 2012 at 12:54pm

hello,

 
I am looking for a formula that will supress duplicate rows of records.
 
I have added a new table to my report and i am now getting multiple rows of data in the details section.
 
If i move my fields to the group header it does not give me the accurate information. It will only give me the first entry.
 
is there a formula i can use in the section expert in the supress formula field?
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 17 Jul 2012 at 1:18pm
Generally duplicated records are a join issue.  But if you cannot fix it with join(s), then in the menu bar - Database -Select Distinct Records can remove duplicate records.

Depending on the nature of duplication, sometimes using the Previous or Next functions can help also.
IP IP Logged
sanchezgmc06
Senior Member
Senior Member
Avatar

Joined: 21 Jan 2011
Online Status: Offline
Posts: 107
Quote sanchezgmc06 Replybullet Posted: 17 Jul 2012 at 1:40pm
Yes, i tried using different links however the information on the tables is nothing a like except for 2 fields.
 
 
I looked at the "select distinct records" but thats grayed out
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 18 Jul 2012 at 5:22am
Are you using a command?  If so,  you should be able to put in DISTINCT in the select statement.  If you are using a view or stored procedure, then it becomes the question on whether or not a new view or SP needs to be created to help eliminate the issue.  If you are using two different data sources, then you might be able to do some sort of special grouping and hide the details.

I  hope this helps.
IP IP Logged
sanchezgmc06
Senior Member
Senior Member
Avatar

Joined: 21 Jan 2011
Online Status: Offline
Posts: 107
Quote sanchezgmc06 Replybullet Posted: 18 Jul 2012 at 6:17am
No i am not using command. Yes i am using 2 different data sources.
 
I might change it to command or if i come up with something i will post a reply and explain what i did
 
thanks!
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum