D dbalargin Member Local time Today, 06:56 Joined Dec 31, 2002 Messages 39 Feb 27, 2003 #1 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)
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)
Mile-O Back once again... Local time Today, 11:56 Joined Dec 10, 2002 Messages 11,316 Feb 27, 2003 #2 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.
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.
V Vassago Former Staff Turned AWF Retiree Local time Today, 06:56 Joined Dec 26, 2002 Messages 4,748 Feb 27, 2003 #3 lol, try this: Iif(isnumeric([fdrid]),[fdrid],right([fdrid]3)) That should work for you. Vassago
Mile-O Back once again... Local time Today, 11:56 Joined Dec 10, 2002 Messages 11,316 Feb 27, 2003 #4 Vassago said: That should work for you. Click to expand... It might if you put the comma in too: Iif(isnumeric([fdrid]),[fdrid],right([fdrid], 3))
Vassago said: That should work for you. Click to expand... It might if you put the comma in too: Iif(isnumeric([fdrid]),[fdrid],right([fdrid], 3))
Mile-O Back once again... Local time Today, 11:56 Joined Dec 10, 2002 Messages 11,316 Feb 27, 2003 #5 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.
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.
V Vassago Former Staff Turned AWF Retiree Local time Today, 06:56 Joined Dec 26, 2002 Messages 4,748 Feb 27, 2003 #6 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.)
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.)