So what is the fix you did with Global variable declaration?
Basically it looks like the following line doesn't return an integer value. It returns some object type, which you can't check against 700
Code:
sql = DTSGlobalVariables("CountofRec").Value
_________________________
- Vijay G
Strive for Perfection