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

Retrieving Log-in Information in a Secure DB

Status
Not open for further replies.

mishbaker

Technical User
Jan 17, 2004
94
US
If I secure a database and a user does his login, how can I retrieve his User Level (i.e. Admin, Guest, SuperUser, Chump, etc) to restrict the viewing of certain controls on my Main Menu?



All lessons learned from the School of Hard Knocks........at least tuition is cheap.
 
The CurrentUser() function will return a string of the user's login name.

You can declare a WorkSpace variable to get to the "Users" and "Groups" collections.

First set the WorkSpace variable to "DBEngine.WorkSpaces(0)".





 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top