Link to home
Start Free TrialLog in
Avatar of Jetter88
Jetter88

asked on

Crystal Reports and formatting FORMULA fields

hi.

I have 2 fields that need to be combined into 1 field. I'm using the formula method and the fields do get concatenated correctly. The problem is the 2 fields data are numbers such as Field1: 2,123.00 and Field2: 12.00

What i would like is the new field to concatenate the fields but formatted correctly and be seen as 212312 and not 2,123.0012.00

How do I format the new FORMULA field on the report?

Thanks
Avatar of Mike McCracken
Mike McCracken

Are you sure they are numeric fields and not strings?

What formula are you using.

mlmcc
Avatar of Jetter88

ASKER

Hi.

I have figured out the solution:

CStr({ServiceAreaDetailReport;1.area},0,"")&CStr({ServiceAreaDetailReport;1.seq},0,"")

Thanks for your help.
Use CStr (totext) function. You should use something like this:
 formula = CStr(aaa,0) + totext(bbb,0)
 - in Basic syntax
 or totext(aaa,0)+ totext(bbb,0)
 - in Crystal syntax.
 where aaa and bbb are your fields, and 0 is number of decimal places.

HTH,
ladylinet
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial