3.3 Run-time syntax errors

If you type a conditional statement with out End If, the problem won’t be detected until the code is actually triggered. When it is triggered, then VB complains about a “Compile error”, and suggests that “Block If without End If”.

This can be a problem because if a subroutine is not triggered when the code is tested, then the syntax error does not show up. This means that a syntax error may escape to deployment.