Solved

Prevent Using Unhide Command...

Posted on 1998-11-23
5
306 Views
Last Modified: 2011-09-20
I just want to know if I can hide my database, so any user can't see my database structures in any condition except admin user, even he can't use unhide command to see my database.
0
Comment
Question by:merci
5 Comments
 
LVL 7

Expert Comment

by:spiridonov
ID: 1969154
If you want to prevent user from using Unhide option , you need to replace general menubar with your own menu bar, that doesn't contain this option.
0
 
LVL 10

Expert Comment

by:brewdog
ID: 1969155
No only will you have to create your own menu bar (or at least turn off the default menu bar), but you'll also have to:

-- hide the default toolbars, most of which contain a button to display the database window. For some reason, even if your database is hidden, Microsoft lets this button display the db window. (Lame)

-- Probably not let users close forms except using methods you want -- funnel them through a switchboard or something.

It's more work than it should be, but I understand the benefits. I do it in all my apps, too.

Hope this helps.

brewdog
0
 

Author Comment

by:merci
ID: 1969156
I  think  you  dont  understand  me, even if   I hide the default menubar,  the other  user can press F11  to unhide my databse,  so,  there  will  be  no  use of your  answer!!!

I  just  want  to  prevent  the user  to  see  the stercure  of my databse?  I  hope  you  understand  me  now!!



0
 
LVL 10

Expert Comment

by:brewdog
ID: 1969157
You'll still need to take the above steps; I didn't know F11 displayed the database window. (Which makes me wonder: how many users do?)

You could create a sub or function that pops up a msgbox telling the user the database window is off limits, then set the KeyPreview property to yes on all forms and reports -- then use your KeyDown event for the form/report to call the sub if the user has pressed F11.
0
 
LVL 3

Accepted Solution

by:
tcurtin earned 0 total points
ID: 1969158
hi brewdog,
the F11 key circumvents any Startup or Autoexec macros, so your comment wouldn't be seen by the database.
Merci,
The only truly way would be to make an .mde and distribute it to the users. The design environment is stripped away. If that is not an option, you need Jet security to use permissions to edit data. The users will not be able to review the design view of objects.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now