Solved

Prevent Using Unhide Command...

Posted on 1998-11-23
5
350 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
[X]
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
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
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.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

728 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