We are a group of users of Blackbaud products and are not affiliated with Blackbaud. We'd love to have you join our community to help and be helped in getting the most from your Blackbaud software.
Register now to join us to get independant advice on your system, connect with 3rd party consultants to help you maximize your database and have a real alternative to the official Blackbaud website.
We have a few old attribute descriptions that I'm needing to include on a report that have bits and pieces of annoying text in them from a very old coding system. For instance:
Category: Former Commitee
Description: Major Gifts Committee (Former)
I'm doing a report and I just want to remove the parenthetical piece. I know I could do a code like
if {field} = "Major Gifts Committee (Former)" then "Major Gifts Committee"
and do a bunch of else ifs depending on what all's in there. It's a relatively small report, so that's doable. But is there a way to just have it suppress that string in the field?
I suspect not. But I figured it would be worth it to see if you guys knew...
You can use the Replace() function to replace one string "(Former)" with another "" in an input string {field}. This would be reasonable if there is a very small set of such substitutions.
Drew
__________________ J. Drew Allen
Children's Hospital of Philadelphia
Crystal Reports and SQL Server Consultant
It is better to live your destiny imperfectly than to live an imitation of somebody else's life with perfection.
Another option if the parenthetical string always appears as the last element in the string is to use the CharIndex() to find the first occurrence of the character "(" and Left() to pull everything up to that value.
Drew
__________________ J. Drew Allen
Children's Hospital of Philadelphia
Crystal Reports and SQL Server Consultant
It is better to live your destiny imperfectly than to live an imitation of somebody else's life with perfection.