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

SSN Formula

Status
Not open for further replies.

TechUser23

IS-IT--Management
Mar 8, 2007
28
US
My current formula:

IF TRIM({rpPatProfile.PatientSSN})<>"" THEN
MID({rpPatProfile.PatientSSN},1,3)+"-"+MID({rpPatProfile.PatientSSN},4,2)+"-"+MID({rpPatProfile.PatientSSN},6,4)

My client would like to have it formatted only to print the last digits of the patient SSN#. So instead of 123-45-6789, I would like this to show as *****6789.
 
Hi,
You are close already, use:

Code:
IF TRIM({rpPatProfile.PatientSSN})<>"" THEN
"*****" + MID({rpPatProfile.PatientSSN},6,4)



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top