Page 1 of 1

Trim the first characters

Posted: Fri Mar 08, 2013 12:08 am
by phanikumar
Hi,

I need to trim the first few characters ina column

Ex:
i/p

109-87654567

o/p

87654567

I tried to use trim function it didn't worked.Can anyone post some ideas to acheive this.


Regards
kumar

Posted: Fri Mar 08, 2013 12:11 am
by ray.wurlod

Code: Select all

Right(InLink.TheColumn, Len(InLink.TheColumn) - 4)

Posted: Fri Mar 08, 2013 12:21 am
by chulett
You could also substring from position 5 to the end of the string.

Posted: Fri Mar 08, 2013 12:34 am
by phanikumar
Thank you Ray That worked.

Regards
Kumar