Trimming a variable number of characters from field...

Mitch_____W

Mitch
Local time
Today, 09:08
Joined
Oct 31, 2001
Messages
73
I need to cut the first 3 characters from each record in a field. each record has a total amount of characters. I tried using a combination of the Right() and Len() functions with no luck...

EX:
=Right([Serial_Number],((Len([Serial_Number])-3))

Any Ideas???

Thanks in advance!!!

Mitch
 
i may be missing something here...

but have you tried:

Mid([YourField],4,Len([YourField]))


hth,
al
 
Let me just say that......YOU ROCK!!!!!!!

That works stupendously!!

Mid([YourField],4,Len([YourField]))

The only thing I changed was the LEN() to a number which is greater than any entry in that field will ever be because the MID() would not accept the LEN() as the 3rd argument:

Mid([YourField],4,51)

THANK YOU VERY MUCH PCS!!!

Mitch
 
The length parameter for the MID function is optional. If you leave it blank, MID will return everything from parameter 2 onwards ie MID("Hello World",4) will return "lo World"

Cheers,
SteveA
 
you are right steve...my error.

been hammering out too much Unibasic code this week...my syntax has gotten confused
smile.gif


al
 

Users who are viewing this thread

Back
Top Bottom