can no longer hide code using password

  • Thread starter Thread starter Bob L.
  • Start date Start date
B

Bob L.

For some reason my .mdb application no longer hides my vba code when the
password is set. That is it used to be that when the password was set you
couldn't see any of the code. Now when I open the application and go to
the vbeditor (via a button I have on a toolbar) the code is completely
visible whereas in the past you would have to enter the password to see it.
If I try to do something (like set a reference) the password dialog box
opens at that time.

The code that I run just to secure the database before closing it with the
password set includes this:

ChangeProperty "AllowBypassKey", DB_Boolean, False
ChangeProperty "AllowSpecialKeys", DB_Boolean, False
ChangeProperty "AllowBuiltInToolbars", DB_Boolean, False
ChangeProperty "Allowfullmenus", DB_Boolean, False
ChangeProperty "Allowtoolbarchanges", DB_Boolean, False
ChangeProperty "apptitle", DB_Text, mytitle
ChangeProperty "StartupShowDBWindow", DB_Boolean, False
ChangeProperty "AllowBreakIntoCode", DB_Boolean, False

Anyone know what could be wrong as it used to work fine? I am running both
2000 and 2003 and recently applied the the 2003 SP2. Regardless of which
version I use, I have the problem.

TIA
 
Back
Top