1. Ditribute your Front-End in MDE format, or
2. Set up the icon for user to run the database in Run-
time mode, or
3. Set up error-trapping in your code so that the user
does't get the Dialog with the Debug button.
(1) is the most secure sine the code is no longer there.
Even if the user knows his/her way in Access, he/she can't
access it. Note: neither can you in an MDE so you need to
keep a copy of the mdb in a secure place in case you need
to modify the database.
HTH
Van T. Dinh
MVP (Access)