Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: IF/Then Statement Post Reply Post New Topic
Author Message
jgarner
Senior Member
Senior Member


Joined: 23 Jan 2009
Location: United States
Online Status: Offline
Posts: 159
Quote jgarner Replybullet Topic: IF/Then Statement
     Posted: 30 Jul 2010 at 9:33am
There are two records in my report which are being imported from an Access database:
 
1) Amount
2) Yes/No field
 
Is there a way to create two formulas to display the 'Amount' record in separate fields based on what is displayed in the 'Yes/No' field?
 
Sample:
 
     Amount                 Yes/No               Formula_Yes             Formula_No
    $500.00                     No                                                      $500.00
    $350.00                    Yes                    $350.00
 
Something to this effect. Maybe an If/Then statement?
Thank You.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 30 Jul 2010 at 10:28am
Assuming Yes/No is a string...
Yes Formula
if {table.Yes/No}='Yes' then Amount
Conditionally suppress the formula field to make it blank as
{table.Yes/No}='No'
No Formula
if {table.Yes/No}='No' then Amount
Conditionally suppress the formula field to make it blank as
{table.Yes/No}='Yes'
IP IP Logged
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