Jonathan said:
Does anyone know how to prevent users from displaying the DB window by
holding down the Shift key when opening an Access project? I want to stop
users from viewing/editing tables directly from the DB window.
For an Access project (ADP), you apply security in SQL Server or MSDE to
prevent users from accessing tables directly. For an mdb you apply User-
level security, remove all permissions for tables except from members of the
Admins group, use RWOP (run with owner permissions) queries so users can
*see* data in forms, reports and queries only, and then run this code to
prevent users from holding down the shift key when opening the database (and
changing this setting):
http://www.mvps.org/access/general/gen0040.htm. Note
that if you don't apply User-level security, this setting can be reversed by
anyone because the default Admin user in the default workgroup has the
permissions to reverse it.