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
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
ASKER
Hi.
I have figured out the solution:
CStr({ServiceAreaDetailRep ort;1.area },0,"")&CS tr({Servic eAreaDetai lReport;1. seq},0,"")
Thanks for your help.
I have figured out the solution:
CStr({ServiceAreaDetailRep
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What formula are you using.
mlmcc