Quote Originally Posted by jmcilhinney
I was editing my post when MrPolite replied, and he pointed out what I was changing: All variables must be declared inside a class or module. As he said, only use "Dim" when declaring a local, or procedure-level, variable.
actually, DONT use dim when you're declaring class level variables. It's better to define the scope (ie, use Private count As Integer if you're declaring it at the top of your form, and not Dim count...)