Recommendation: The most basic of any debugging procedures.

Put a DEBUG ON into the first line of your code and step through it, you'll then see where it'll fail.
_________________________
There are two types of vessels, submarines and targets.