Update Query

elgoober

Registered User.
Local time
Today, 21:09
Joined
Mar 2, 2001
Messages
83
Hi

I want to remove the last 2 characters in a code - so in the stock code

BS1222222ZZ

I want to get rid of the ZZ.

There are 6000 records that need to be amended.

I was thinking about some form of query that would

a) Count the number of charcters (Expr1)
b) Based on the number of characters perform an extract (say IIf say no of chars in Expr1 = 7, mid(Expr1,1,5) else blah

Then update b) to the original sequence.

Is this sensible - or is there a more informed method.

Cheers

Paul
 
Perfect

Thanks Bilbo.
 

Users who are viewing this thread

Back
Top Bottom