views:

48

answers:

3

Our MS Access 2000 developer left the company a year ago. We need to open his app in design mode in order to make modifications. Double-clicking the .mdb file while holding the shift key doesn't work. When I do that the developer toolbar shows for a split second, then all toolbars go away and the app opens as users would see it. No toolbars show and only a basic dashboard is visible to run the app. I tried using the password recovery tool mentioned here but the tool says there is no password. Can someone tell me how I can open this app to make code modifications?

+1  A: 

Make sure there wasn't another copy left around without this code enabled.

This is typical code used to do this sort of thing, SetByPass There are instructions to hit Cntl-G to open VBA Editor and run code to unset this thing.

Jeff O
Ctrl-G is one of the keystrokes that SetByPass disables, so that won't work. Thus, the code you cite can't be used to undo SetByPass because it's hardwired to CurrentDB. However, if you replace the `Set dbs = CurrentDB` with `Set dbs = DBEngine.OpenDatabase("C:\MyData.mdb")` then it will fix the external database.
David-W-Fenton
A: 

also see this

Beth
...the point being that the code in the cited URL allows you to change the settings for a database other than the one you're running the code in.
David-W-Fenton
A: 

Have you tried creating a new blank database, and then importing everything?

It sounds like the shift key by-pass has been set, but that's as noted usually only needed for deployment. In fact, for any access developer, this is quite much a standard approach.

So, it not clear if anything at all been locked up here or the person just set things up as most access applications should be when deployed to users.

About the only thing you lose when importing to another application is the tools startup settings and the shift key. If there are custom menus, make sure you check the option to import those also. (However, be careful, as sometimes custom menus can be setup to run a macro on startup, and this was an old security trick). So, if importing once with tool bars and holding down shift key still causes startup code to run, then try creating another blank database and this time import everything except the menu+tools bars from the old application. Holding down shift key will thus then work for you.

Also, if the system not asking your for a password, then what would you expect a password recovery program to do? All you need is basic access developer skills here to deal with this problem and throwing things like password removal when you not being prompted for passwords will not move you forward here.

On the other hand, if after importing all the forms into a new database the design ability is grayed out, then this was in fact a mde file, and you are in a rather difficult situation unless you can find the original mdb file used to create the mde.

Albert D. Kallal