Password protect a control on a form?

T

TC

Well ...

sub cmdMyButton_Click()
if inputbox ("enter the password") <> "s3cr3t" then
beep
msgbox "no way, jose!"
else
' do stuff.
endif
end sub

If your database was an MDE, the users could not view the code to get the
password.

Of course, this is a >very crude method<, providing no way for authorized
users to change the password (for example). But maybe it would get you
started.

HTH,
TC
 

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