Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Adding RT fields Post Reply Post New Topic
Author Message
stevetothink
Newbie
Newbie


Joined: 18 Oct 2010
Online Status: Offline
Posts: 37
Quote stevetothink Replybullet Topic: Adding RT fields
    Posted: 15 Jul 2011 at 6:32am
I'm still new to crystal and appreciate the help this board provides.

I've created 5 different RT fields (RT-Tax1 through RT-Tax5) and I'm trying to display the total of these fields.

I created a formula that very simply says RT-Tax1 + Rt-Tax2 + RT-Tax3 + RT-Tax4 + RT-Tax5.

The formula works fine if the record has a tax amount in RT-Tax5. However, if the record does not have an amount in RT-Tax5 then it shows blank on my report, even if there is an amount in RT-Tax1, RT-Tax2, etc.

Anyone know what I'm doing wrong?

Thanks in advance.
Steve
IP IP Logged
kostya1122
Senior Member
Senior Member
Avatar

Joined: 13 Jun 2011
Online Status: Offline
Posts: 475
Quote kostya1122 Replybullet Posted: 15 Jul 2011 at 7:24am
weird!you could try
tonumber(RT-Tax1) + tonumber(Rt-Tax2) + tonumber(RT-Tax3) + tonumber(RT-Tax4) + tonumber(RT-Tax5)

IP IP Logged
sharona
Senior Member
Senior Member
Avatar

Joined: 16 Oct 2008
Location: United States
Online Status: Offline
Posts: 255
Quote sharona Replybullet Posted: 15 Jul 2011 at 8:25am
go to file
report options
check off convert null values boxes
that should pull in the zero
sharona
IP IP Logged
CrystalDesigner
Newbie
Newbie


Joined: 16 Jun 2011
Online Status: Offline
Posts: 5
Quote CrystalDesigner Replybullet Posted: 15 Jul 2011 at 8:57am
Sharona's advise should work if not you may try the below formula:
 
IIF((isnull(RT-Tax1),0,RT-Tax1)+(isnull(Rt-Tax2),0,Rt-Tax2)+(isnull(RT-Tax3),0,RT-Tax3)+(isnull(RT-Tax4),0,RT-Tax4)+(isnull(RT-Tax5),0,RT-Tax5))
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.