Solved

Prevent Using Unhide Command...

Posted on 1998-11-23
5
345 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

Independent Software Vendors: 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

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…
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
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…

734 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