Firstly, pasting a bit of your code would help with providing a solution.
Secondly, try assigning the value of @@FETCH_STATUS to a seperate variable for each of the loops.
Thanks
Phill Carter
--------------------
Colt 45 - the original point and click interface