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

Split SSN

Status
Not open for further replies.

surfbum3000

Technical User
Aug 22, 2003
156
US
The table I am working with has the field SSN. I need to seperate the numbers to 3 seperate fields: SSN1, SSN2, SSN3. The data in the field SOC_SEC_NUM is without hyphens: 123456789. I tried

SSN1: Val(Left([SOC_SEC_NUM],3)) ; This works OK
SSN2: ?
SSN3: Val(Right([SOC_SEC_NUM],4)) ; This works OK

How do I get the 4th and 5th digits into one field?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top