Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Format number field to no decimals

Author  Topic 

kathyc
Starting Member

9 Posts

Posted - 2009-03-14 : 14:10:08
Hello

I have a textbox on my SRS report and the expression for this is:
=SUM(Fields!GrandTotal.Value)

How do I format this number so that it has commas where needed and no decimal places?

Thanks.

sunitabeck
Master Smack Fu Yak Hacker

5155 Posts

Posted - 2009-03-14 : 19:25:23
Reporting service uses Visual Basic formatting strings. In report designer, in the properties window of the text box, enter N0 for format Property.

You can find information on the format strings at http://msdn.microsoft.com/en-us/library/dwhawy9k.aspx#
Go to Top of Page
   

- Advertisement -