Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


How lock users out of the tables, queries, reports, etc.

Posted on 2016-08-24
Medium Priority
Last Modified: 2016-08-29
Is there a way to lock users out of the objects in the navigation pane?  I thought that by splitting the database and saving the front-end file as an accdb file this would work but I guess it doesn't.

Any tips?
Question by:SteveL13
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 58
ID: 41769411
A bound and determined can get at things, but you can make it very difficult.  First your app should always be split, even if it's single user.

 Then distribute the "front end" as a MDE/ACCDE and turn off the database container and menus.  Force it into runtime mode by adding code at startup that quits if the app is not running that way.  

 That locks them out of all the design features, and because it is a MDE/ACCDE, they can't get at to code either.


Author Comment

ID: 41769421
Jim.  Ok.  But questions:

1)  How do I turn off the database container and menus.  


2) How do I force it into runtime mode by adding code at startup that quits if the app is not running that way.

LVL 39

Assisted Solution

PatHartman earned 1000 total points
ID: 41769425
If your users are not sophisticated, simply renaming the FE from .accde to .accdr will prevent them from entering design mode on anything.

PS  - Be very careful when using  an .mde/.accde that you retain the original .accdb in a safe place.  There is no easy way to recover the .accdb from an .accde.  There are services but you won't necessarily like what you get.
LVL 58

Accepted Solution

Jim Dettman (Microsoft MVP/ EE MVE) earned 1000 total points
ID: 41770161
<<1)  How do I turn off the database container and menus.  >>

 Start up options:   File, Options, current database, Un-check "Display Navigation Pane".

The menus are not available in the runtime version.

<<2) How do I force it into runtime mode by adding code at startup that quits if the app is not running that way.>>

If SysCmd(acSysCmdRuntime) = False then Application.Quit


If SysCmd(acSysCmdRuntime) = False then
  MsgBox "This application can only be executed in runtime mode", vbOKOnly+vbCritical
End If

 If you want to message the user.


Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question