In development environments other than Visual Basic version 6, syntax errors can be a problem. Fortunately though, VB provides syntax error checking. Auto Syntax Check can be enabled or disabled from the Editor tab of Options, which is accessed from the Tools menu. Enabling Auto Syntax Check causes VB to check your syntax when you move away from a line of code. For example, say you wanted to type:
Dim x As Integer
Instead of typing this however, you type:
Dom x As Integer