Hi All,

I was working on a web form project with SSRS embedded for a couple reports for the end user. In the MS SQL DB a table had a column data type as money.

When data was brought from the SQL Server and into the report and rendered the dollar amounts had two extra trailing zeros. For example: Grand Total: 24.82000

Weird I though, so after some googling came across a format that will help.

If displaying in a text box right click on the text box and go properties (if I remember right, it also might be called “Value”).

There should be something already there is the textbox is getting populated, something like =Dataset2!Fields.Total

Simple add this around the existing code

syntax:

Format(dataset info, digits right of decimal)

So for my purposes I need two places right of the decimal for US currency

=FormatCurrency(=Dataset2!Fields.Total, 2)

The output was Grand Total: $24.82

Viola

Leave a Reply

You must be logged in to post a comment. Login »