Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: hiding an element Post Reply Post New Topic
Author Message
r0k3t
Newbie
Newbie


Joined: 02 Oct 2008
Online Status: Offline
Posts: 5
Quote r0k3t Replybullet Topic: hiding an element
    Posted: 24 Oct 2008 at 6:30am
Hi, I have been searching through the books but I can't seem to find how to set an elements visible property. I have a formula field that is a number, if it is 0 then the report prints 0.00 I want it to print nothing.

I am pretty new to crystal so I could be going about this wrong way even, I don't know - Any advice would be great. This is what my current formula looks like.

if({DataTable1.Agent_Commission} > 0)
 Then
   {DataTable1.Agent_Commission}
Else
 

The "Else" line is where I am stuck...

Thanks

IP IP Logged
yggdrasil
Senior Member
Senior Member
Avatar

Joined: 19 Jun 2007
Location: United Kingdom
Online Status: Offline
Posts: 150
Quote yggdrasil Replybullet Posted: 24 Oct 2008 at 7:08am
I would conditionally suppress the field if the value was zero. Put it on the report, then 'Format Field', tick the Suppress box, and put =0 in the formula box beside the tick
IP IP Logged
JohnT
Groupie
Groupie
Avatar

Joined: 20 Jan 2008
Online Status: Offline
Posts: 92
Quote JohnT Replybullet Posted: 24 Oct 2008 at 9:17am
Another option ....
 
Go ahead and have your else return a zero. 
 
To set the format to suppress the zero, right click on the object on your report, go to Format Field, Click on the number tab, click on Customize and check the suppress if zero box.


Edited by JohnT - 24 Oct 2008 at 9:17am
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.017 seconds.