Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Eliminate Currency Symbol

Posted on 2003-10-23
4
Medium Priority
?
211 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 200 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

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…
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 …
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

926 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