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!

Add mask to string value 2

Status
Not open for further replies.

Hueby

MIS
Oct 20, 2004
321
US
Hi,

I have a string datatype that is a SSN number.

I simply want to add a mask to that string like XXX-XX-XXXX.

Do I put this under the Display String in the format window...?

Not sure where and how to do this. Thanks!
 
Dear Hueby,

Do you mean that you want to format the field so that it takes 9 digit number and formats it as xxx-xxx-xxxx or
do you mean you want to not show any of the digits and change it to show xxx-xxx-xxxx?

I am going to assume you want the former ...

Picture ({customer.SSN},"xxx-xxx-xxxx")

regards,

ro



Rosemary Lieberman
rosemary-at-microflo.com, Microflo provides expert consulting on MagicTSD and Crystal Reports.

You will get answers more quickly if you read this before posting: faq149-3762
 
Thank you to both of you.. that is exactly what I was trying to accomplish.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top