String selection (1 Viewer)

deanvilar

Registered User.
Local time
Today, 13:49
Joined
Mar 27, 2013
Messages
63
Hello Gurus ...

txt = CS000001

I selected a part of the string by RIGHT (me.txt, 6) "returns 000001"... but what I really need is to take the strings before these 6 digits "CS" .... I cannot use LEFT(me.txt, #) because the the letters before these 6 digits can be 1, 2, 3 or more letters .. for example CS000001, CSC000003, MBMMS000005, etc...

thanks in advance ... =)
 

JHB

Have been here a while
Local time
Today, 22:49
Joined
Jun 17, 2012
Messages
7,732
Try Left(Me.txt, len(Me.Txt)-6)
 

deanvilar

Registered User.
Local time
Today, 13:49
Joined
Mar 27, 2013
Messages
63
thanks for your reply ... let me try
 

JHB

Have been here a while
Local time
Today, 22:49
Joined
Jun 17, 2012
Messages
7,732
You're welcome.
 

Users who are viewing this thread

Top Bottom