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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to limit user to certain actions in VB5?

Status
Not open for further replies.

sobeit

Programmer
Sep 11, 2000
38
US
i need to control the editting buttons (vieww,add,delete,update) and limit menu options to users base on their rights. I will use tables to store what screens and menu selections a user has, but I have never
employ this setup in Visual Basic. Has anyone gone down
this road or has other ideas that I can use to limit access in Visual Basic environment??

Thanks in advance.
 
1. You need a user table assigning access levels to each user. How and where you get this information is up to you.

2. You need to TAG each object with an access level requirement. The Tag field is a good place, again still up to you.

3. After your user is identified or as each form loads run a for each on controls and disable the ones with an access level inappropriate for the user.

Unfortunately this means you need to do some analysis to divide your controls into level bands. If that's impossible, add another control field, or a relationship such as user-groups. I hope this is starting to sound familiar... You'll find more ideas reviewing NT file system security.



Wil Mead
wmead@optonline.net

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top