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

Right Trim function

Status
Not open for further replies.

Tamrak

MIS
Jan 18, 2001
213
0
0
US
Good afternoon,

I have raw data that need to trim the right side of information. The data looks like this:

Field name = Name

Peters, John (F90780/GA)
Roberts, Frank (FG3434H/FA)
Perkins, May (Ffd435/AA)

....

What query should I write to eliminate the right side of information? All I need is to have the information in parenthesis going away. So, the results will be:

Peters, John
Roberts, Frank
Perkins, May

Thank you for your time.

(Tried to use right trim and it does not work. The information in the parenthesis has 9 characters in length + two for the open and close parenthesis. The field type is a text field.)

 
Left(Name, Len(Name)-12)

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top