Hi Brian,
Am I correct in assuming that one of those "very savvy" users
could still enable this property...
Yep. You need to implement Access "security" in order to secure the allow
bypass key setting. See the following article for more details:
Securing AllowBypassKey
http://www.mvps.org/access/general/gen0040.htm
However, Access security is not all that secure. There are free tools
available on the internet to crack the best Access security in a matter of
seconds if one has the workgroup information file (.mdw file) available.
At some point, an .mde starts to look like the best option.
I always distribute in .mde format only for regular users. Your code stays
compiled, and there is a reduced chance of encountering MISSING reference
errors. However, the allow bypass property can be easily reset, even in .mde
files.
Tom
______________________________________
:
I use a double-click of a hidden control on the startup form, combined with a
password dialog, to enable/disable the AllowBypassKey property. Am I correct
in assuming that one of those "very savvy" users could still enable this
property without being able to open the DB (like opening another db and using
VBA to set the property's value back to False)? At some point, an .mde starts
to look like the best option.
______________________________________
:
Use Tools > Startup... to specify your switchboard as the startup form.
(Alternatively, you can use a macro named Autoexec, and specify your startup
form there). Deselect "Display Database Window" and "Use Access Special
Keys". You may want to experiment with the other selections as well.
If you want, you can take it a step further by disabling the shift key.
Usually, holding down the shift key, while starting a database, will bypass
an Autoexec macro and the settings made under Tools > Startup... You can use
code to disable the shift key trick, although savvy users can always
re-enable it. Most user's don't even have a clue about holding down the shift
key, let alone how to disable or re-enable it. Post back if you want more
details on this.
Tom
______________________________________
:
How can we make sure that only the switchboard(and related forms) will
be available to the user, so that she will not mess up with the database?