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

ssn format

Status
Not open for further replies.

sbcsandhu

Programmer
Jul 3, 2007
113
US
i cant rememeber how i would format the dashes(-) in a SSN

123456789

would like it 123-45-6789

thanks
 
Try:

//@ssn formula
picture({table.ssn},"xxx-xx-xxxx")

Andy

 
That was assuming the ssn was a text field. If its numeric try:

//@ssn formula
picture(totext({table.ssn},0,""),"xxx-xx-xxxx")

Andy
 
If it's a number, then I think you should use:

picture(totext({table.ssn},"000000000"),"xxx-xx-xxxx")

--in order to get the leading 0.

-LB
 
Oh yea, I forgot about the those folks born in the top-right-corner of the country - thanks for catching that, LB.

Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top