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

Separate sorting for each change of group

Status
Not open for further replies.

Almie

Technical User
Nov 28, 2006
39
US
I am using Crystal 10, and was wondering if anyone knew how to perform separate sorting for each change of group. Let me explain.

group1: foreignkey_violation_records
cog1 - eventledger_bond_type - records with invalid bond types, need it to sort/group bond type alphabetically
cog2 - eventledger_case_status -records with invalid case status, need it to sort/group records case status alphabetically
cog3 - eventledger_party_type - record with invalid party types, need it to sort/group party type alphabetically

* cog - Change of group

Currently when I sort by bond type, all records appearing under the eventledger_case_status are sorted by bond type and so on for all other change of group records.


 
I would probably create a subreport for each change of group.
 
I was hoping there was another way. Thank you for your assistance.
 
Yes, you can do this. If your groupfield is {table.cog} with instances like cog1, cog2, cog3, set up a formula {@sort} like this:

select {table.cog}
Case "cog1" : {eventledger_bond_type}
Case "cog2" : {eventledger_case_status}
Case "c0g3" : {eventledger_party_type}

Then go to report->sort records and add {@sort} ascending as your sort field.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top