Tips and Tricks
 Crystal Reports Forum : Crystal Reports .NET 2003 : Tips and Tricks
Message Icon Topic: If IsNull - Error A String is required here Post Reply Post New Topic
Author Message
slreyna
Newbie
Newbie
Avatar

Joined: 26 Mar 2013
Location: United States
Online Status: Offline
Posts: 4
Quote slreyna Replybullet Topic: If IsNull - Error A String is required here
    Posted: 05 Apr 2013 at 9:41am
I get A String is Required here with this formula - can anyone help me identify my problem??
 
//This formula checks to see if DRG expected reimbursement is empty, possibly indicating a Medicaid patient
if IsNull ({HSP_ACCOUNT.DRG_EXPECTED_REIMB}) then "Medicaid"

//If the DRG expected reimbursement is provided, display the value stored in the DRG Expected Reimbursement field

else {HSP_ACCOUNT.DRG_EXPECTED_REIMB}

Thanks!!
Sheri
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 05 Apr 2013 at 11:26am
I am assuming that {HSP_ACCOUNT.DRG_EXPECTED_REIMB} is not a string.  The results from a if statement have to be the same data type.  So the only solution is to convert {HSP_ACCOUNT.DRG_EXPECTED_REIMB} to a string (i.e., totext({HSP_ACCOUNT.DRG_EXPECTED_REIMB}) )
IP IP Logged
slreyna
Newbie
Newbie
Avatar

Joined: 26 Mar 2013
Location: United States
Online Status: Offline
Posts: 4
Quote slreyna Replybullet Posted: 05 Apr 2013 at 11:28am
Thank you Big%20smile
Sheri
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.031 seconds.