Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: multiple If's in a formula? Post Reply Post New Topic
Author Message
swatts
Groupie
Groupie
Avatar

Joined: 17 Mar 2010
Online Status: Offline
Posts: 83
Quote swatts Replybullet Topic: multiple If's in a formula?
    Posted: 05 Dec 2011 at 6:19am
Basically I have a project where someone has to choose 1, 2, or 3. When they pick one of those then they have to go to that page to fill something out. When they choose page 2 they have to go to page 2 and fill out some things and they may pick more than one thing. However, as shown below in my formula, if they pick 60 then they have to fill out a box, as with 80 and 90. Here is my formula.



if ({Staffing_Note.Choose_Form}) = "1" then
"CASE STAFFING" & Chr(13) &
replace ({Staffing_Note.Case_Staffing_Value},"&",Chr(13))
&
if "60" in ({Staffing_Note.Case_Staffing}) then
"(High risk due to " & {Staffing_Note.High_Risk_DT_Box} & ")" & Chr(13) &

if "80" in ({Staffing_Note.Case_Staffing}) then
"(Major change: " & {Staffing_Note.CS_Major_Change_Event} & ")" & Chr(13) &

if "90" in ({Staffing_Note.Case_Staffing}) then
"(Other: " & {Staffing_Note.CS_Other} & ")"


What is happening is, if they choose 90 and only 90, it does not show me the data in the CS-Other.


Edited by swatts - 05 Dec 2011 at 6:21am
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 05 Dec 2011 at 7:20am
try changing the formula option to use default values for NULL.
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.016 seconds.