Make sure you use Option Explicit at the top of all your code modules. This forces you to declare all variables and will error if you have a variable that hasn't been declared. If E.Hyde is correct in that you have not properly declared your constants, having Option Explicit would have caught that and warned you.
(In the Tools, Options menu, you can set up VB6 to automatically add Option Explicit to all new Code Modules.)




Reply With Quote