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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Supress Duplicate records

Status
Not open for further replies.

busi1

Technical User
Dec 14, 2005
56
US
Hi,

I have a report which displays the following data.

PO Number PO Date Vendor
111111111 01-01-07 xxxxxx
111111111 01-01-07 xxxxxx
111111111 01-05-07 xxxxxx
111111111 01-05-07 xxxxxx
111111111 01-06-07 xxxxxx

I want to supress the Duplicate PO numbers and Vendors if PO Dates are same else display all. My output should look like this.

PO Number PO Date Vendor
111111111 01-01-07 xxxxxx
111111111 01-05-07 xxxxxx
111111111 01-06-07 xxxxxx


I am using Crystal 10.0 and oracle 9

Help Appreciated

Thanks
SB
 
Assuming you've already used Database->Select Distinct Records, then you have options.

Group by PO, then by date.

Place the field in the date group footer and suppressthe details.

OR

Right click the details section and select section expert->x2 next to suppress and place:

(
{table.PO} = previous({table.po})
and
{table.date} = previous({table.date})
)

Make sure that you're sorted by POthen date.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top