all groups > sql server reporting services > june 2007 >
You're in the

sql server reporting services

group:

Why (###) ###-####



Why (###) ###-#### Scott Burke
6/14/2007 10:05:02 AM
sql server reporting services: I am trying to format the phone number field in a report.
The phone number is saved like this: 2126492824
I wont it to display on the report like this: (212) 649-2824

I tried the format tab, It did no good.
I trided this :
=Format(First(Fields!Phone1.Value, "SQLREPORTS"),"(###) ###-###")

I don't get an error but I get this : (###) ###-####

WHY!!!! can't I format this phone number?

RE: Why (###) ###-#### mischa
6/14/2007 12:00:01 PM
Hi Scott,

I'm but a novice myself, but my best bet would be to right-click on the
field in the layout and go to -> format. There you should select the '...'
under format, where you can enter your own formatting rules. There you should
try what you did.... (###)###-###

Maybe my navigation to the option is a bit off, but I'm sitting on my couch
at home... not actually using the program.

Good luck - hope it works!
mischa

[quoted text, click to view]
RE: Why (###) ###-#### Scott Burke
6/15/2007 6:13:00 AM
Hi Mischa, Thanks for your time.

I have allready tried the format tab. same results.
that is why I posted.

Scott Burke

[quoted text, click to view]
Re: Why (###) ###-#### Keith Thomas
6/21/2007 3:29:32 PM
Try converting the value to DOUBLE first

Format(CDbl(Fields!Phone1.Value, "SQLREPORTS"),"(###) ###-###")


[quoted text, click to view]
Re: Why (###) ###-#### Scott Burke
6/22/2007 12:54:00 PM
Nice try. Same result.
Scott Burke

[quoted text, click to view]
AddThis Social Bookmark Button