VBA code to prompt user to enter a password when the user wants to access a form or report in DESIGN view
Posted on 2009-12-23
Could someone kindly help me with coming up with VBA code that prompts a user to enter a valid password in a message box (with an OK and Cancel button) when the user wants to access a form or report in DESIGN view. If the password is incorrect, the user is prompted with a message box (with OK and Cancel button) stating "Incorrect Password, Try Again" and loop back through the code until a valid password is entered. Or the user has the option to click on the Cancel button to exit out of the message box and stop the VBA code. If the password is correct, the user can access the form or report in design view.