Is "SW 2" a form? do you have a button that you click to open "SW 2"?
If you have a button to open "SW 2", then put what I gave you and only
what I gave you on the "on click" event for the button. There should be nothing else but that VB for the password prompt.