ник: Explorer
>Нужно всегда использовать опцию Option Explicit для обязательного описания переменных
+1
Microsoft Visual Basic doesn't automatically require that you explicitly declare a variable before using it in a procedure
If you use a variable that hasn't been explicitly declared, Visual Basic implicitly declares it as a variable with the Variant data type. Although implicit declarations are convenient, they can lead to subtle errors in your code.
You can require that variables be declared before they are used in a procedure. Microsoft Access automatically includes an Option Explicit statement in the Declarations section of all new modules in the database, including the form and report modules associated with new forms or reports.