Please edit your post, select the code and wrap it in code tags. Use the [CODE] icon above the input box.
You forgot to post the full text of the error message so we could see where it occurred and what the value of the index was.
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656