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

Trim 2 most right symbols - IBM US --> IBM

Status
Not open for further replies.

denko

Programmer
May 17, 2001
70
US
Need help to create an Update query to trim 2 symbols from the right.
IBM US -> IBM
ABS US -> ABS
A US -> A
CHIR US -> CHIR

Thanks
 
left(YourField,instr(YourField," ")-1) John Ruff - The Eternal Optimist :)
 
Another way if you are specifically trimming a number of characters is:
left(YourField,len(YourField)-3)

This would trim the last 3 characters from the specified field.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top