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!

right trim

Status
Not open for further replies.

tomk01

ISP
Oct 18, 2004
69
US
I cant seem to get this right. I'm trying to take a filed that looks like this :

Field
1)
12)
12345)

and chang it to look like this

field
1
12
12345

ir trim or rtrim the right command? how do I use them?
 
You may try this:
Left(myField, Len(myField)-1)
Or this:
Left(myField, InStr(myField,")")-1)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top