You seem to be missing a "NEXT" to close your loop.
_________________________
Home page: http://www.kixhelp.com/hb/