What do you mean by 'create a exe' - you can't do that with Access.
Are you saying you can open the mdb after starting Access (and loggin in). Or are you saying a double click on the mdb file in Windows Explorer opens the mdb with no login required?
If the former, that makes sense. The mdw is in place for the session of Access. So you'll be asked for a login when you open Access; you can then open any number of mdb files (secured with that mdw) during that session.
If you the latter, then you missed a step in securing the mdb.
--
Joan Wild
Microsoft Access MVP
:I created a exe file that joins the mdw file with the mdb. The exe file
: prompts for a password as I wanted but when I open the mdb file I get right
: in. Any ideas on where I went wrong?