I have a recordset of about 5500 customers, they have their own unique customer numbers (it is not the autoincrement primary key field) which don't follow any convention at the moment. Management came up with new convention for the number. Six characters, first 3 are first 3 customer name chars and last 3 are unique number starting from 001 and must increment if 3 letters repeat again for whichever customer with similar starting name. I must update all cutomer numbers to that new convention. about 85 customers start with "THE" which should be handled as exception and trimmed to remove "THE" and use the 3 chars from the next word in the customer name. there are some more exceptions but I think I can probably do it manually. Customer number is not really hooked on anything else but the customer table so I'm safe there.
I'm looking for a good way to handle this efficietnly and accurately. Lots of suggestions would be much appreciated.
Thanks.
I'm looking for a good way to handle this efficietnly and accurately. Lots of suggestions would be much appreciated.
Thanks.