Solved

Eliminate Currency Symbol

Posted on 2003-10-23
4
202 Views
Last Modified: 2009-11-04
how do i change the data displaying $10.00 to 10.00 without the $ sign

i tried using formula likes CStr({field}) and CDbl({field}) but got error "A string is required here"

the data type in MSSQL in MONEY

so, how? i do not want to display $ sign in my report

urgent! pls help....thank you.
0
Comment
Question by:zoelam
  • 2
4 Comments
 
LVL 77

Expert Comment

by:peter57r
ID: 9605562
Right-click and Format Field
On the number tab deselect 'Show Currency Symbol'

Pete

0
 

Expert Comment

by:w003rpb
ID: 9616794
You can also just select the format with just decimals or even no decimals and no currency sign.  Hope this helps!
Ryan
0
 

Author Comment

by:zoelam
ID: 9624415
sorry, i forgot to mention mine one is a formula field.

when i right click and Format Field, there is no Number tab.

my formula is as follow :

If IsNull({myTable.myField}) Then " - "
Else CStr({myTable.myField})

but the $ sign still show, how do i write a formula to hide it?
0
 
LVL 77

Accepted Solution

by:
peter57r earned 50 total points
ID: 9625396
'If IsNull({myTable.myField}) Then " - "
Else CStr({myTable.myField}) '

This assumes there is ALWAYS a currency symbol:

//start
stringvar MyAmount;

myamount:= cstr({myTable.myField})

if isnull({myTable.myField}) then
 "-"
else if len(myamount)= 0 then
 "-"
else
right(myamount,len(myamount)-1)
//end

Pete
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

910 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

20 Experts available now in Live!

Get 1:1 Help Now