lodgingsit
asked on
Crystal Reports 2008
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
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
ASKER
Thanky you mlmcc. I get an error message which says A boolean is required here...
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
You should just create a formula in the field explorer and then drag the field to the report
mlmcc
ASKER
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you mlmcc this was great.
If {MyField} = 'AA' then
'banana'
Else if {MyField} = 'BB' then
'apple'
etc
mlmcc