niladri.primalink (9/20/2013)
Sorry For using the word 'it'.Actually the code what SScrazy sent to me is working for me.
That's why I wrote it is working for me.
If I hurt you then it is in my unbeknown.
Thank you for the concern but you didn't hurt me. I'm more concerned about what you ended up using because While Loops and cursors can be quite slow. That's why I wanted to know what you ended up using.
My recommendation would be to have a look at the code that Sean wrote for this. With apologies to Mark, Sean's code will run much more quickly.
--Jeff Moden
Change is inevitable... Change for the better is not.