CrystalBox,
You could leverage any of the STRING functions in Crystal if there are standardized structures or groups of structures.
The one that comes first to mind is REPLACE(), and could be used something like follows (assuming all have "Policy Violation - "):
{@YourNewDescription}
Code:
Replace({SECTION_CODE_DESC},"Policy Violation - ","")
The above would take all instances of [blue]Policy Violation -[/blue] and replace it with nothing (double quotes).
Left(), Right() & Mid() could also maybe be used, as well as InStr(). Of course, any of these can be combined with IF, CASE or other logical operators to group your modification if/as needed.
String Functions can also be nested, and work from the innermost function out to the outermost.
Assuming your same example above, lets say we want to remove all instances of "Policy Violation -" and also shorten all instances of "Harrassment" with "Hrsmnt". In this case, the order doesn't matter, as the second change is not conditional on the first. The formula for this would look like:
{@YourNewDescription}
Code:
Replace(Replace({SECTION_CODE_DESC},"Policy Violation - ",""),"Harrassment","Hrsmnt")
The combinations are near endless, you can also set up a test field to experiment with various combinations (in an new/empty report) by simply creating a formula field and typing in some random text (I also put quotes around it to ensure "text" formatting).
Hope this helps! Don't hesitate to ask if you see a trend and would like help with a formula. Crystal Reports Help is also great for the syntax of these functions.
Cheers!
Mike
---------------------------------------------------------------
"To be alive is to revel in the moments, in the sunrise and the sunset, in the sudden and brief episodes of love and adventure,
in the hours of companionship. It is, most of all, to never be paralyzed by your fears of a future that no one can foretell."