Passwords on Access

S

Simon

I have a shop database, is there way to restrict/ and put passwords on
certain forms,

As i do not want staff to see profit
 
T

Tom van Stiphout

On Thu, 24 Dec 2009 04:09:57 -0800 (PST), Simon <[email protected]>
wrote:

Yes. The simplest and not necessarily most secure way to do this is to
write a few lines of code in the Form_Open event of such forms:
if InputBox("What's the password?") <> "myPassword" then Cancel = True

Make sure you distribute your application as a compiled version: MDE
or ACCDE or ADE.

-Tom.
Microsoft Access MVP
 
J

John W. Vinson

I have a shop database, is there way to restrict/ and put passwords on
certain forms,

As i do not want staff to see profit

It sort of depends on how inquisitive and how skilled the staff are. It's
probably impossible to make a desktop Access database really secure against a
skilled and determined hacker, but on the principle that "locks are to keep
out honest people" you can use Tom's suggestion to require a password on
opening a form.

The next step up would be version dependent. If you have A2003 or earlier, you
can implement "Access Workgroup Security". Download the Microsoft Access 2000
Security FAQ:

http://support.microsoft.com/kb/207793/en-us

Read it carefully. Get a good night's sleep. Read it AGAIN, even more
carefully. Back up your database, and follow the instructions scrupulously.
You'll need to secure both the frontend (with the forms, reports, etc.) and
the backend (with the tables) - if you don't have the database split in this
way, *do it*, regardless of the security issue!

A2007 has removed the ability to create a secured database, although if you
use .mdb format files (rather than the newer .accdb) it still supports
security.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top