Solved

Crystal reports - parameter decimal positions

Posted on 2013-06-04
4
761 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
Comment Utility
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
Comment Utility
I had already tried that. It shows as 0.010 when formated with 3 decimal positions.
0
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
Did you also change the rounding?

mlmcc
0
 
LVL 34

Accepted Solution

by:
James0628 earned 500 total points
Comment Utility
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now