I use the code form the link as well. It is one of the better ways to secure a form. However, and I mean however, make sure you diable the close button on frmPassword otherwise if you click on the x it closes the form and opens the form that you wanted to secure. Other than that, perfect.