If you have a start form add a command button (in design view) and then open the properties for the command button, look at the Event Tab and then click the On Click Event and use the 3 dots to the right and select Code Builder copy and paste the code I added make sure you change the password to the one you want in the code and also don't copy the first line or last line as this is the command button name.