Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Crystal Reports and formatting FORMULA fields

Posted on 2003-03-14
5
Medium Priority
?
414 Views
Last Modified: 2012-06-21
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
0
Comment
Question by:Jetter88
4 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 8138365
Are you sure they are numeric fields and not strings?

What formula are you using.

mlmcc
0
 

Author Comment

by:Jetter88
ID: 8138395
Hi.

I have figured out the solution:

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

Thanks for your help.
0
 
LVL 7

Expert Comment

by:ladylinet
ID: 8138399
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
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 11849879
PAQed, with points refunded (75)

modulo
Community Support Moderator
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Loops Section Overview
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…
Suggested Courses
Course of the Month13 days, 3 hours left to enroll

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question