Sounds like a program flow problem. Please post your code using the "CODE" tags. We can then see if the code is properly structured.
_________________________
Home page: http://www.kixhelp.com/hb/