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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mlmccCommented:
Good point.

mlmcc
0
Exploring ASP.NET Core: Fundamentals

Learn to build web apps and services, IoT apps, and mobile backends by covering the fundamentals of ASP.NET Core and  exploring the core foundations for app libraries.

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.