Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: How can I trim resulting data? Post Reply Post New Topic
Author Message
PeterG
Newbie
Newbie
Avatar

Joined: 28 Sep 2010
Location: Canada
Online Status: Offline
Posts: 6
Quote PeterG Replybullet Topic: How can I trim resulting data?
    Posted: 14 Apr 2011 at 7:08pm
Hi to all,

I have this formula in one of the crystal reports that I am asked to fix. I just cannot make the result correct.

The formula is:
IF
(table1.field1) = "ConferenceName/SessionName"
THEN
(table1.field1) + " - " + " # of Attendees: " + totext((table2.field1))
ELSE
(table1.field1)


table2.field1 is a numeric field that has 2 decimal points.


The result in the report shows the 2 decimal points. How can I show it without the 2 decimal points. The result should be like this:

ConferenceName/SessionName - # of Attendees: 1 [or 2 or 3 depending on the customer order but without the decimal points]

I am not a programmer nor a developer so I would really appreciate any assistance on this.

Kind regards,
PeterG
PeterG
Novice User
IP IP Logged
FrnhtGLI
Senior Member
Senior Member
Avatar

Joined: 22 May 2009
Online Status: Offline
Posts: 347
Quote FrnhtGLI Replybullet Posted: 15 Apr 2011 at 2:27am
totext({table2.field1}, 0)
|< /\ '][' ( )
IP IP Logged
PeterG
Newbie
Newbie
Avatar

Joined: 28 Sep 2010
Location: Canada
Online Status: Offline
Posts: 6
Quote PeterG Replybullet Posted: 10 Jun 2011 at 9:19am
Thank you very much for the help. It worked.
PeterG
Novice User
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.012 seconds.