Crystal Report Sort

Hi Everyone I have a crystal report.  I have a grouping in a report.  The grouping is called household and the typical value is something like this:

Mr & Mrs John and Jane Doe or something like that.  

I want the sort to be as such though on a different field called lastname in alpha asc order.

Right now because I have my grouping household which I do need so I can group like records it puts them in all kinds of order.
jwebster77Asked:
Who is Participating?
 
James0628Commented:
Another option is to group on the last name first, and then household.  Then the report will be grouped (and sorted) first by the last name, and then by the household.  You can suppress the last name group header and footer.

 James
0
 
mlmccCommented:
Is there a field called lastname?

If so try this
Put the lastname field on the report in the detail section
Right click it
Click INSERT --> SUMMARY
Choose MAXIMUM or MINIMUM
Put the summary in the GF1
Delete the LASTNAME FIELD from the detail section
CLick REPORT --> GROUP SORT EXPERT
Click the dropdown and change NO SORT to ALL
Choose the SUMMARY field presented in the right box
Click OK

You can then delete the summary field from the group footer

mlmcc
0
 
mlmccCommented:
Good point.

mlmcc
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
jwebster77Author Commented:
Thank you!  This worked.  And thanks for the other advice on the question.  That may have worked as well but did not try it.
0
 
mlmccCommented:
It will work and is useful if you want to sort by a summary like total sales which isn't a field in the data.

mlmcc
0
 
James0628Commented:
You're welcome.

 FWIW, yeah, the group sort would work too, and it can be very useful.  It wasn't necessary in this case, but it's something to keep in mind.  You may need it later.

 James
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.