Oct 19, 2007 #1 sbcsandhu Programmer Joined Jul 3, 2007 Messages 113 Location US i cant rememeber how i would format the dashes(-) in a SSN 123456789 would like it 123-45-6789 thanks
i cant rememeber how i would format the dashes(-) in a SSN 123456789 would like it 123-45-6789 thanks
Oct 19, 2007 #2 AndyMc Vendor Joined Mar 17, 2001 Messages 333 Location US Try: //@ssn formula picture({table.ssn},"xxx-xx-xxxx") Andy Upvote 0 Downvote
Oct 19, 2007 #3 AndyMc Vendor Joined Mar 17, 2001 Messages 333 Location US That was assuming the ssn was a text field. If its numeric try: //@ssn formula picture(totext({table.ssn},0,""),"xxx-xx-xxxx") Andy Upvote 0 Downvote
That was assuming the ssn was a text field. If its numeric try: //@ssn formula picture(totext({table.ssn},0,""),"xxx-xx-xxxx") Andy
Oct 19, 2007 #4 lbass Technical User Joined Feb 9, 2002 Messages 32,818 Location US 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 Upvote 0 Downvote
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
Oct 19, 2007 #5 AndyMc Vendor Joined Mar 17, 2001 Messages 333 Location US Oh yea, I forgot about the those folks born in the top-right-corner of the country - thanks for catching that, LB. Andy Upvote 0 Downvote
Oh yea, I forgot about the those folks born in the top-right-corner of the country - thanks for catching that, LB. Andy