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

Report based on view currency shows 4 decimals

Status
Not open for further replies.

Rich196

Programmer
May 17, 2003
42
US
I have a report based on a view. The field in the view comes from a table that has the correct format for currency and displays correctly when browsed. (Format $, InputMask 999,999.99) The report shows the field as $999.9999. I have set the property for the field in the view designer as Format $, InputMask 999,999.99 but it still shows with 4 decimals. I have tried all kinds of combinations to no avail.

I can SET DECIMAL and SET FIXED to get the correct display for the currency but the other numeric fields then have decimals.

How can I just affect the currency decimals in the report?

Rich
 
Put the following in format on the Report Expression dialog box for your report field(s):

Code:
@$ 999,999.99

The space between the $ symbol and the 999,999.99 has to be there for it to format correctly.

boyd.gif

 
Thanks Craig,

Right on! I didn't have the space after the $ in the report expression. Strange how that makes the difference.

Rich
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top