Solved

Crystal reports - parameter decimal positions

Posted on 2013-06-04
4
798 Views
Last Modified: 2013-06-05
I want the users to be able to enter a parameter of .005 (or whatever it will be). The number would always have 3 decimal positions. When this is entered it comes in as .01. How can this be corrected?
0
Comment
Question by:qbjgqbjg
  • 2
4 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 39219838
How do you know it comes in as 0.01?

Drop it on the report
Right click it
Click FORMAT OBJECT
Choose a format with at least 3 decimals or use CUSTOM

If you choose to customize
Set decimals to 1.000 and rounding to 0.001

mlmcc
0
 

Author Comment

by:qbjgqbjg
ID: 39219932
I had already tried that. It shows as 0.010 when formated with 3 decimal positions.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39220366
Did you also change the rounding?

mlmcc
0
 
LVL 34

Accepted Solution

by:
James0628 earned 500 total points
ID: 39221604
If you put the parameter on the report and change the decimals and rounding for that field to 3 places, then if you enter .005, you should see .005 on the report.  That works here.

 However, if you refresh the report, the parameter screen may round that to .01, and if you don't change it back to .005, the report will get the rounded value (.01) when it refreshes.

 When you run reports from CR 10, the format for number parameters comes from the default number format in CR.  I'm guessing that CR XI is the same.

 If you're running the report from CR, instead of a viewer or some other app, go to File > Options, select the Fields tab and click Number.  Select the Number tab and change the number of decimals and rounding there to 3, then OK your way out of those screens.  The next time you refresh the report, the parameter should show 3 decimal places.

 The problem is that you're changing the default that will be used for all number parameters and new numeric field formats in every report.  When you run any report with a number parameter, it will have 3 decimal places, and when you add a numeric field to a report, it will default to having 3 decimal places.  But that's the only way I know to change the parameter format.

 James
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

786 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