Robert_DubYa said:
Hi Craig,
Thanks for response.
Could you please explain the function of the development and user
db's? Are you talking about making an fe and be db? If so I should
explain that I am only using this procedure as a report. The actual
tables are in my company's ERP system and I am connecting via odbc to
get a live report. Because the tables in our ERP system are so large
and ODBC is so slow over our network I use make table queries that
run off of a click event. I fear using a be db would slow this
process down.
You are already using a backend db - the tables are in the ERP system. Even
if you create local tables, your database is still split. You should have
at the very least a backup of the mdb you are using. Then all you'd have to
do is restore the backup.
You, as the developer, should have your own copy of the mdb. You can make
changes, test things, and once you are ready, you'd copy the updated
frontend to the users. If someone deletes something they shouldn't (and
just why do they get away with this, BTW?), you'd be able to deploy the
latest mdb.
You could implement security, but you may not have to. Instead of using
saved queries, you could run the sql statements in code - create a mde of
the mdb, and distribute that - they wouldn't be able to modify the code.
However that wouldn't stop them from deleting things.
You can lock down the interface, so that they don't see the database window.
Backup your database; you can easily lock yourself out playing around with
these features.
Create custom menus/toolbars for use throughout your application.
Create a startup form (a main menu form if you have one) that is opened on
startup.
Use the features in Tools, Startup to
set the startup form
set your default menu (the custom one you made)
disable all the checkboxes about allowing built in menus, toolbars,
changes etc.
hide the db window (ensure the custom menu you create does not
include the Windows, Unhide item)
Click on the Advanced button and uncheck the allow special keys
(this will disable the F11 key, among others)
If you need to bypass these startup features, you can hold the shift key
down while you open the db. If you feel that your users may use this to
bypass your settings, you can disable the shift key bypass - there's an
example in help for doing this(look for AllowBypassKey) or at
http://www.mvps.org/access/modules/mdl0011.htm
and
http://www.mvps.org/access/general/gen0040.htm
If you create a MDE from your database, be certain to keep your original
mdb in case you need to make changes.
None of this will keep the determined out. All they need to do is start a
new db and link to your's, but this may suffice for your purposes.
Perhaps management can intervene with regard to the deleting.