Prevent field access by password

P

Paulo Ferreira

Hello,

Can someone tell me how to prevent access to a field on a form, by password.
Thanks,

Paulo Ferreira
 
A

Arvin Meyer

Paulo Ferreira said:
Hello,

Can someone tell me how to prevent access to a field on a form, by
password.

You can't mask the password with this, but it does work (and fast too)

Private Sub txtWhatever_Enter()
If InputBox("Enter your password") <> "Scooby Doo" Then
DoCmd.Quit
End If
End Sub
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access Downloads
http://www.datastrat.com
http://www.mvps.org/access
 

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