Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Password & Login ~~~ Restricting Code Access 1

Status
Not open for further replies.

Roam2k2

Programmer
Aug 4, 2008
9
CA
Hi,
I've got a command button that once clicked asks for the user password and then if correct, performs the specified action. I am currently using a simple Input Box to ask the user for both his/her username and password. Is there a better way to go about this action ?

Also, how do i restrict code access in VBA ? As in, you know how all you have to do is hit ALT+F11, how do i block off that option ? I ask because if you hit ALT+F11 on the form, you can easily see the user's password that would allow you to do a certain action.

Thanks for all your help,
-Roam.
 
Hi Roam,

To restrict access to your vba project, give it a password (Tools|Project Properties|Protection > Lock Project for Viewing (check)> Password (input)> Confirm Password (input)> OK).

Cheers

[MS MVP - Word]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top