Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display number field as other dollar amount or percentage.

Status
Not open for further replies.

BigC72

MIS
Oct 15, 2004
69
US
I am using CR 8.5. Data comes from a DB2 database. Data is a number field that contains our patients Insurance Co-Pay amount which can be one of three things either 0.00 for patients with no co-pay amount, $25.00 for patients with a particular co-pay amount or .20 for patients whose co-pay is a percentage of the total bill for that day.

The first two values display with no problem of course it's the third I'm struggling with. I'd like to be able to see that .20 value and display it correctly as 20%.

Thanks...
 
Try:

if {table.amount} < 1 then
totext({table.amount}*100)&"%"
else
totext({table.amnpount})

A mixed use for a single field in a table like this is generally a bad idea, I'd suggest that your dba get their application into a Burger King ;)

-k
 
Thank you for the help, this site has proven to be invaluable...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top