trim?

dbalargin

Member
Local time
Today, 18:10
Joined
Dec 31, 2002
Messages
39
How do I trim the first two letters off of a string in a query?
ex. Iif(isnumeric(fdrid),fdrid,I need the trimed word here)
 
Are you trying to get rid of the first two letters or use the first two letters?


To use the first two letters use the Left() function and two exclude the first two letters you can use either the Mid() or Right() functions.
 
lol, try this:

Iif(isnumeric([fdrid]),[fdrid],right([fdrid]3))

That should work for you.

Vassago
 
Vassago said:
That should work for you.

It might if you put the comma in too:

Iif(isnumeric([fdrid]),[fdrid],right([fdrid], 3))
 
But

IIf(IsNumeric([fdrid]), [fdrid], Mid([fdrid], 3))

would be better as Right would only take the three characters on the right of the string.
 
Thanks for correcting my comma mistake. Typo

And the three characters to the right is all that he needs. I have strong mental powers to read into his database and see what he's talking about. (Or we may just happen to work at the same place.)
 

Users who are viewing this thread

Back
Top Bottom