Les - ja - thought same thing when I first read your code - it starts with an "open-ended" check of @ERROR which might cause trouble. Once the loop gets going though, should be perfectly fine.