Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Rounding or Truncating doesn't work? Post Reply Post New Topic
Author Message
lazyme
Newbie
Newbie


Joined: 07 Nov 2007
Online Status: Offline
Posts: 10
Quote lazyme Replybullet Topic: Rounding or Truncating doesn't work?
    Posted: 13 Nov 2007 at 8:30am
I have this formula:
 
if {qry.SKU} = previous({qry.SKU}) then
    ""
else
    totext(truncate({qry.On Hand},0))
 
However, the ToText -ed number is still showing 2 decimal places.
 
Can someone suggest an alternative or show me what I have done wrong?
 
Thanks in Advance.
 
 
IP IP Logged
lazyme
Newbie
Newbie


Joined: 07 Nov 2007
Online Status: Offline
Posts: 10
Quote lazyme Replybullet Posted: 13 Nov 2007 at 11:15am
Nevermind, I solved it myself.
 
Instead of using text, I turn the empty field "" to 0 then surpress any 0 fields.
 
That way, I can edit the field as numbers instead of text.
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.