Password in code

  • Thread starter Thread starter Rene Kooijmans
  • Start date Start date
R

Rene Kooijmans

Hello,

I need to protect 3 forms of 25 with a password. I don't want to use the
securitymanager as i won't use usernames. Can someone provide me with a vb
code in which i can control a password!

Many thanx in advance

René
 
Rene said:
Hello,

I need to protect 3 forms of 25 with a password. I don't want to use the
securitymanager as i won't use usernames. Can someone provide me with a vb
code in which i can control a password!

I assume that by 'control' you actually mean 'check' or 'validate'. You
can user the Open event of the form, asking for the password (maybe you
need a custom form replacing the standard InputBox) and setting the
Cancel parameter to True if the password is wrong, effectively
disallowing the form to be opened.

There is no way you can make this 'water tight', anyone with a little
coding/developing experience would easily circumvent any measure you
create yourself.
 
Back
Top