Why don't you post all of the code so that we can see the logical flow process.
_________________________
Today is the tomorrow you worried about yesterday.