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

returning chars right of a certain char 2

Status
Not open for further replies.

smuthcrmnl777

Technical User
Jan 16, 2006
104
US
Code:
Left([line-sample],InStr([line-sample],'-')-1)

This code returns values left of the '-'. I need to return the values right of the '-'.

I tried to change it from left to righht and I modified the -1, but it is not working for me. Any advice?
 
I am now using the Mid() with my code. It works fine, thanks for your help.

I now need to be able to take the results I get from the mid and eliminate the letters that fall to the immediate right of the numbers. I can not gurantee there are letters for every record or which letters they will be. I just need them eliminated.

For Example:

115R
115
11A
A
300
305


Some have letters some don't. What can I do to eliminate them?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top