Joined: 13 Jun 2012
Location: United States
Online Status: Offline
Posts: 50
Topic: Social security number formatting Posted: 26 Jul 2012 at 8:54am
here is the scenario: In the database (hospital patient data) I am running report against, the social security numbers coming out of the table are in this format:
230,901,438 (I know, its insane. The field is also a number) which after applying this: Picture (ToText ({TSM040_PERSON_HDR.soc_scu_no}, 0, ""), "xxx-xx-xxx")
comes out nicely as 230-90-1438
Here is the problem though: If the SSN starts with a zero, it looks like this: 70,401,384
which translates to (after applying the formatting): 704-01-384 which is not good.
So my problem is how do I format this thing if it starts with a zero, or two zero's? Any ideas would be much appreciated.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum