View Single Post
  #8  
Old May 31st, 2010, 10:16 PM posted to microsoft.public.access.forms
Arvin Meyer [MVP][_2_]
external usenet poster
 
Posts: 2,310
Default password-protected form

I'm building a quick sample application which will be called Security.mdb,
located at:

http://www.accessmvp.com/arvin

If these newsgroups are closed just keep checking, it will be there within a
day.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.accessmvp.com
http://www.mvps.org/access
Co-author: "Access 2010 Solutions", published by Wiley


"blanch2009" wrote in message
...
Thank you Arvin for your reply.

I have no coding experience and don't know how to do what your suggesting.

I followed your link to the code that will call for the user name and
built
a module for the code to reside in but I have no idea what to do with it
now.

This all sounds very difficult to do.

Thanks Arvin

Don


"Arvin Meyer [MVP]" wrote:

Unless you are using the MDB format, you cannot secure individual objects
using Access security. Even with Access security you cannot require a
password for a single form. What you can do however is determine who the
user is using code like:

http://www.mvps.org/access/api/api0008.htm

Knowing who the user is, can allow you to choose whether or not to allow
him/her to access any objects in the database.

I typically add a hidden table to the database with permission levels for
each user, then store that in a global variable, then check that in the
form
load or form open event to see if the user has sufficient permissions to
access that object.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.accessmvp.com
http://www.mvps.org/access
Co-author: "Access 2010 Solutions", published by Wiley


"blanch2009" wrote in message
...
I'm sorry,
I was using the comments in this thread to password a form in Access
2007.

The code that was suggested works "ok", the password window pops open
but
you can see the password as it's typed, not good in most situations and
then
the first time you type a password I'm assuming that password is
stored.
hidden somewhere. The next time you open the form, the password window
opens
and you type in the password. I'd say that's ok but I'm testing and
would
like to reset the password, or allow for another password.
I have one person that will be using this form so the one password
limitation is ok in this instance. I would like to learn how to create
a
form that requires a user to enter there name & password before the
form
can
open.

Thank you in advance and I'm hoping I've explained what it is I'm
trying
to
do.

Don


"Arvin Meyer [MVP]" wrote:


"blanch2009" wrote in message
...
How do you clear or reset the password?

I think you need to tell us which password in which version of Access,
before anyone can give you a good answer.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.accessmvp.com
http://www.mvps.org/access
Co-author: "Access 2010 Solutions", published by Wiley


.



.