I have an embedded macro to open a password protected form. The password works and using an incorrect password presents the error message I defined, but when the user clicks on OK the form still opens. It's as if the embedded OpenForm Macro is still executing. Is there any way to stop the macro from executing under these circumstances? I tried using the code in the attachment, but then the password code didn't work at all. Thanks!