Solved

Eliminate Currency Symbol

Posted on 2003-10-23
4
208 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
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…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

739 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