Solved

Crystal Reports 2008

Posted on 2011-02-28
6
233 Views
Last Modified: 2012-05-11
Hello,

I would like to change the word result on my report from what is given by my database to something else.

So lets say the database gives me a result of AA, and in the report I would like Banana to show up. What formula should I use?

Thank you
0
Comment
Question by:lodgingsit
  • 3
  • 3
6 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 34998487
A formu;a like

If {MyField} = 'AA' then
    'banana'
Else if {MyField} = 'BB' then
    'apple'
etc

mlmcc
0
 
LVL 1

Author Comment

by:lodgingsit
ID: 34999035
Thanky you mlmcc. I get an error message which says A boolean is required here...
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 34999251
Where are you putting the formula?

You should just create a formula in the field explorer and then drag the field to the report

mlmcc
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Author Comment

by:lodgingsit
ID: 34999757
Hello,

I was doing it under Select Expert. Your suggestion worked. Small problem with this solution however is that lets say AA is shown as banana and BB is shown as apple and currently I have no idea what future results may be.

So say in one week CC comes out but I don't have it in the code. I would not like the field to be empty, so what should I add at the end of the formula to have CC show up there? Basically after:

If {MyField} = 'AA' then
    'banana'
Else if {MyField} = 'BB' then
    'apple'

I would want Else display answer as is. How would I do that?

Please let me know if you need further clarification. Thank you.
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 250 total points
ID: 35000013
Try

If {MyField} = 'AA' then
    'banana'
Else if {MyField} = 'BB' then
    'apple'
Else
   {MyField}

mlmcc
0
 
LVL 1

Author Closing Comment

by:lodgingsit
ID: 35000126
Thank you mlmcc this was great.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

911 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

24 Experts available now in Live!

Get 1:1 Help Now