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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert to Percentage 2

Status
Not open for further replies.

tdong

Programmer
Mar 12, 2004
112
CA
Hi
I am using CR 9 and MS SQL in the database there is a interest_rate field which contain a float number how do I display it as percentage ? example 0.03 which should display as 3% just use CR for 2 days.

I am using it with VB6 in vb 6 report it allow you to format your selection at design time can't format to percentage at all with this CR 9.
 
If 0.03 is considered 3%, you will need to create a formula to mulitply it by 100:

{table.field} * 100 & "%"

Or if you need it to be a numeric field:

{table.field} * 100

then click the "%" sign on the Formatting toolbar once you have added the field to your report. This will add the percent in the display of the field.

~Brian
 
You can create a formula like this:

@conversion

{table.interest_rate} * 100

Put this formula in the desired location. Now click on this formula in design view and select the "$" from the toolbar.

Hope this helps!

Kchaudhry
 
Thanks alot :) now I just know how the formula fields work :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top