Error with VB2010

            If recStr > 1000 Then

But, recStr is a String. What does a String greater than 1000 mean?

I think you need to convert the String to a number, if possible, and compare and manipulate that number.