Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Object Text - editing formula Post Reply Post New Topic
Author Message
almulder
Newbie
Newbie


Joined: 17 Aug 2011
Online Status: Offline
Posts: 3
Quote almulder Replybullet Topic: Object Text - editing formula
    Posted: 17 Aug 2011 at 10:05am
Ok I'm kinda new to crystal reports 2008 and need some basic help.

I have a Text box (Text18) on my form that says "This is NOT an INVOICE" i need it to have a formula like this:

if {HDRXXXXDEF.TITLE} = "RMA ACKNOWLEDGEMENT"

// Not sure the formula but something along the lines of
    Then (Text18 = "This is NOT a CREDIT"
    Else (Text18 = "This is NOT an INVOICE)




Edited by almulder - 17 Aug 2011 at 10:08am
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 17 Aug 2011 at 10:39am
a few ways to do this but the most often used is to make a string formula that you use inplace of the text field...
in the Field Explorer right click and select New
name it (e.g. Credit_vs_Invoice label)
add your formula here
if {HDRXXXXDEF.TITLE} = "RMA ACKNOWLEDGEMENT"
    Then "This is NOT a CREDIT"
    Else "This is NOT an INVOICE"
drag the formula field onto your report where you had the text box
IP IP Logged
almulder
Newbie
Newbie


Joined: 17 Aug 2011
Online Status: Offline
Posts: 3
Quote almulder Replybullet Posted: 17 Aug 2011 at 11:04am
That worked. THANKS!
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.014 seconds.