>I am getting an Illegal redefinition error for a public variable named TheCount
>
>Below are the three lines of code where the variable is used.
>
>Public TheCount
>TheCount = 0
>TheCount = TheCount + 1
>
>I renamed it TheKount and get the same result.
>
>The only other use of it is in the data property of textbox that displays the count of items found.
>
>Any idea what the cause might be?
Don't use public variable. Switch to a form's property if this variable is only needed for the form or application property (if you don't use application object - _screen property) to use in the application.
If it's not broken, fix it until it is.
My Blog