Solved

Crystal Reports - Data Type Number Only 2 Decimal Places

Posted on 2011-09-15
5
692 Views
Last Modified: 2012-05-12
Hi

I have Crystal Reports linked to SQL Server. In SQL Server, my number is 0.2025. Crystal has given this a datatype of "Number", which seems limited to 2 decimal places

What do i need to do, to get it to recognise that it is actually 4 decimals ?

I am in Crystal 11, and my query is created using a command

Thanks
0
Comment
Question by:seancurt
  • 2
  • 2
5 Comments
 
LVL 5

Expert Comment

by:wkrasner
ID: 36542853
Right click the field go to format and format as number with decimals then expand field width
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 36542974
There is also a decimal control onthe toolbar.  It looks like 0.00 with a curved arrow under it to the right and left

If it isn't just the display what is the issue?

mlmcc
0
 

Author Comment

by:seancurt
ID: 36544447
Hi

No it isn't the display. I have already set it to show 4 decimal places. The problem is it is only pulling out of the database at 2 decimal places. If I right click and choose browse data on the field, it says "0.20" but the database says "0.0205"
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 36544784
Try this though you might have to create a new report for the change to take effect.

Click FILE --> OPTIONS
Click the FIELDS tab
Click NUMBER
Click the NUMBER tab
Choose the 4 decimal place as the default
Click OK to return
Check your report
If you still only see 2 decimals try creating a new report using that table

mlmcc
0
 

Author Closing Comment

by:seancurt
ID: 36548006
Hi

This worked great, thanks

FYI - you don't need to recreate the report, but you do need to delete and re-add the fields

Thanks again
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Not Exists 3 69
Formula for concatenating multiple fields with "commas" to seperate values 4 47
Crystal Reports--SubReport 3 55
Conditional Text in Crystal 4 51
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. …
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 …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

770 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