When I add "Option Explicit" I get Compile Error: Invalid inside procedure. This code is not being run in a module, its part of an event on a form. I tried to run it with the other code the you provided, but it skips the error handler breaks the code and goes to the Invalid Qualifier error.