Click to See Complete Forum and Search --> : Crystal reports and Phone #'s


Steve
March 9th, 1999, 12:14 AM
I can't seem to find any information on displaying a phone number in

crystal reports in the (###) ### - #### format instead of 1234567891

when making a report. Can anyone point this out to me?

garmar
June 10th, 1999, 10:08 AM
In crystal reports, create a formula and try the picture function found under "Additional functions"

Example: Picture ({customer.phone},"(xxx) xxx-xxxx" )

If the string is 1234567891, then the outcome will be (123) 456-7891. This will work.

OR

you can use the Mid function.

Example: "(" + Mid ({Customer.phone},1 ,3 ) + ") " + Mid ({Customer.phone},4 ,3 ) + "-" + Mid ({Customer.phone},7 ,4 )

If the string is 1234567891, then the outcome will be (123) 456-7891. This will also work.

GaryCaspelich