Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Report Has Duplicated Rows

Status
Not open for further replies.

kc27

Technical User
Sep 10, 2008
171
US
Hello All

My simple report lists all the values entered for a single field in the database. The report is just a listing of the values, with one value on each row.

I used the Format Editor > common tab > "Suppress if Duplicated" check box on this field to only get one instance of any of the values, but it had no effect - the report still lists all the values once, whether the value is a repeat of one earlier in the report or not.

What do I have to do to ensure each row is a unique value, and not a repeat of a previous row?

Thanks in advance for any ideas on this.
 
I should have mentioned that I am using Crystal Reports 9.

No, I did not sort the field. If I do a sort, I still have duplicate rows.

I did try grouping the fields. That might shorten the list if if I can eliminate the rows that appear under each grouping. When I group, I still have all the duplicated rows, but now each one has a group heading. Is there a way to keep the group description row and get rid of the "data" rows?
 
Hi,
Just group on that 1 field and do not place anything in the details - you can even suppress the detail section entirely.



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Thanks everyone. I got it down to just the groups themselves. with the detail section deleted, I've got a lot of gaps between each grouping line. Is there a way to eliminate the empty space between the groups.
 
If you sort and you still have duplicate rows, then they are likely not duplicate, but contain an additional record where the value you are looking at the same but some other field value associated with that record is different.

I think Turkbear likely gave you the easiest solution.

Another way i think you could go, is to suppress the details using the 'x+1' button next to the suppress checkbox and enter in: not(onfirstrecord); PREVIOUS({table.field})={table.field};
 
Hi,
Supress the Detail and Group Footer sections, that should eliminate the gaps.



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Thanks for the help everyone, I used Turkbear's solution of supressing the Detail and Group Footer sections to clean up the report.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top