I would like to have a button on a
form to open another form. The form
to be opened I would like to open after
a password has peen entered.
Before answering a "security lite" question, I always feel obligated to say
that any self-implemented security scheme can be broken, and it doesn't take
a "real hacker" to do so -- that is, most are very easily broken into.
Put a TextBox on your Form, set its Format property to "Password" so that
whatever is typed will be displayed as a string of *s. You can use the
Wizard to create the code to Open the target form, and surround the
DoCmd.OpenForm with your code to check the password. I would guess the best
way would be to have a table stored with the user's id and password, and
look up by user name (which entails, also, applying Access' security -- and,
since you are doing that, perhaps you would be better to check that the user
is in the group that has permission to open the other form instead of coding
your own).
Larry Linson
Microsoft Access MVP