Solved

Eliminate Currency Symbol

Posted on 2003-10-23
4
209 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

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. …
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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

626 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