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!

SUBSTRING with a RIGHT function? 1

Status
Not open for further replies.

AuctionLamb

Programmer
Feb 16, 2005
65
ZA
Hi guys!!

I have a field(GLCODE) that looks like this "Stationery - 10-00-809-52". I ONLY want to see the "00" in this field, how do I do this?

I know I can do a RIGHT and then a SUBSTRING, but how do I combine it?

THANKS!!!
 
Yes, the right part of the field is always the "10-00-809-52" part.
 
THANKS jonwolds!!!

Works great......explain to me how the left and right works in your syntax because I thought it will only take on the right function....
 
RIGHT function is actioned first, returning the right nine characters to the LEFT function, which in-turn returns the left 2 characters (of the nine).

Cheers
Jon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top