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

Query - Selecting specific characters

Status
Not open for further replies.

Quan9r

Technical User
May 18, 2000
36
US
I would like to run a query the pulls the first letter of a persons last name AND pull just the last four characters of their Social Security Number - Is there a way to limit the selection of characters in a text field?

Is there a way to sort by the last two digits in a persons SSN?

I have tried several things but nothing works - Much appreciation
 
Use the functions Left, Right and Mid.
Like: Left("String",2) is going to return "St" (first 2 caracters from the string. (You can read the Help file for more examples).

Simco
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top