Password access to a form

CSJM45

Registered User.
Local time
Today, 01:03
Joined
Aug 7, 2013
Messages
45
Hi

Does anyone know anything about using a password to restrict access to a form? What's the best way to do it? Also, I'd like to restrict access to controls in that form based on what the password is.

Thanks,
 
At the simplest:

Code:
If InputBox(...) = "Whatever" Then
  DoCmd.OpenForm ...
Else
  MsgBox "no dice"
End If

Keep in mind a knowledgeable user may be able to get around it. You can lock or disable controls either here after opening the form or in its open event.
 

Users who are viewing this thread

Back
Top Bottom