Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Fixed Format Post Reply Post New Topic
Author Message
Memoli28
Groupie
Groupie
Avatar

Joined: 10 Apr 2009
Online Status: Offline
Posts: 58
Quote Memoli28 Replybullet Topic: Fixed Format
     Posted: 06 Dec 2009 at 4:51am
Hi All,
 
I need a formula for the following format:
 
Field1(string)    Field2(num)       Field3(num)                required format: 
AAAAA                1,00                   1,00                      AAAAA-0001-0001
BBBBB                13,00                 59,00                    BBBBB-0013-0059
 
in the new field i add this 3 fields together but i get the following
result:  AAAAA-1,00-1,00
 
Field 2 and field 3 can be max 4 digits.(max 9999)
No broken numbers.
 
What kind of formula do i need for this?
I have such a formula in excel 2003 but crystal syntax is not accepting it.
 
 
any help appreciated.
 
Regards,
Memoli
 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 06 Dec 2009 at 7:53am
field1 + '-' + totext(field2,'0000') + '-' + totext({field3},'0000')
IP IP Logged
Memoli28
Groupie
Groupie
Avatar

Joined: 10 Apr 2009
Online Status: Offline
Posts: 58
Quote Memoli28 Replybullet Posted: 07 Dec 2009 at 10:28am
Dear DB,
 
as always many thanks for your help.
 
regards,
Memoli
IP IP Logged
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