Solved

Crystal Sort Direction on multiple string field formula

Posted on 2009-04-07
3
886 Views
Last Modified: 2013-11-28
I have a formula field that is used for sorting.  One of the fields inside of the formula field needs to be sorted desc, but the rest asc.  Is there anyway for me to change my sort field in the crystal formula editor window?
0
Comment
Question by:jdonaghe
3 Comments
 
LVL 7

Expert Comment

by:PCIRichard
ID: 24091967
You can only sort alpha numericaly on the formula as a whole.

One possible solutiion would be to create several groups, one for each of the fields in the formula. in group expert select the correct sort order for each one.

Then supress all the group headers and footers.

The details sections will be sorted as you require.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 24093602
Agree.

If you need further help, please provide the formula  and what you want the sorting to be.

mlmcc
0
 
LVL 34

Accepted Solution

by:
James0628 earned 500 total points
ID: 24095908
If you're only sorting by these fields and not grouping, then you don't need groups.

 Change your original formula so that if you're sorting by the descending field, that formula outputs just a space (instead of that field).

 Create an additional formula for the field that you want to sort descending.  Set that formula so that it only outputs that field when you want to sort by it, otherwise it just outputs a space.

 Change the report so that it's sorting by both formulas (it doesn't matter which is first), and make the sort by the new formula descending.  Since only one of the formulas will produce "real" output on a report (the other formula will be blank), the report will actually be sorted by one formula or the other.

 That should do it.

 James
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now