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

data selection 1

Status
Not open for further replies.

mwmark

Technical User
Jun 5, 2007
23
0
0
US
Using crystal 10 and a sql db.
I have a report that re-assembles my sales orders and works great, but i want to only see ENTIRE orders that have a specific sku_id.
Grouping by salesman,customer name,order number, then details (including sku_id), footers.
when i try and select a sku_id in the select expert i only get that sku and not the rest of the order.
any help would be appreciated.
 
Create a formula {@hasskuID} like this:

if {table.sku_id} = <particularskuID here> then
1

Then go to report->selection formula->GROUP and enter:

sum({@hasskuID},{table.orderno}) > 0

Note that if you are doing calculations across groups you will need to use running totals since the more usual inserted summaries will include non-group-selected records.

-LB
 
It is the field you are grouping on for "order number", your innermost group.

-LB
 
AWESOME! Worked perfectly
I really appreciate your help; you have saved me tons of time!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top