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

Blanking out first five digits of a soc sec # 2

Status
Not open for further replies.

choochoowinn2009

Technical User
Feb 24, 2010
34
US
Hi,

How would you write a formula to blank out the first five digits of a social security number?

The output would be like XXX-XX-1111.

Thank you!

C
 
try right({social security number}, remaining fields you want to show)
e.g right(00012344, 5) should give 12344.

Hope it helps

____________________
Men put up a strong face just to cover their weaknesses...good!
But a smile makes them live longer....
Which would you choose?

Think about it.
 
Just a tweak:

"XXX-XX-"+right({table.ssn},4)

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top