Formula to return specific results if fields match in crystal reports

5 pts.
Tags:
Crystal Reports
Crystal Reports 2008
Crystal Reports formulas
I have two seperate fields, if they return the same value I want to display that value, if they do not then I want to display another field.  I tried to use the formula below:

If  {CnBio_Org_Name} =  {CnPrBs_Org_Name} Then {CnBio_Org_Name} Else {CnBio_Name}  

Here is a sample of the data with the results I am getting:

 

CNBio Org Name:  Fairview

Result :  Blank

CnBio Name:  John

CnPrBS Org Name:  Fairview

Result:  John

What I want the results to display are:

CNBio Org Name:  Fairview

Result :  Fairview

CnBio Name:  John

CnPrBS Org Name:  Fairview

Result:  Fairview

Also it is of note that in the database file the fields

CNBio Org Name and CnPrBs Orn Name are linked (so if CNPrBs Org Name exists it will appear exactly the same as the CnBio Org Name).

How do I write this formula?



Software/Hardware used:
Crystal Reports 2008

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following