I have created my database so that it users the NT id which is checked against a table to authorise access into the database. I also have code to lock out all the toolbars and the database window from users. Now what I need to do is tie it all together and create permissions so that Admin users have full access whereas normal users are restricted (i.e. the no tollbars, etc. code I spoke of earlier)
I have created a table called Team members which looks like below:
Employee Number Firstname Surname Level Access
3333333 User One User
4343434 User Two User
4444444 User Three User
5555555 User Four Administrator
I use Environ$("username"
to grab the NT ID
What I need to do is create a vb script that will do:
1)
lookup result of Environ$("username"
in team members table!
= 5555555 and script has found the user
is user access Admin?
Yes
Then GoTo End
2)
lookup result of Environ$("username"
in team members table!
= 3333333 and script has found the user
is user access Admin?
No
Then GoTo Lock toolbars script
I hope this gives you a good idea of what I am trying to do.
All help is very very much appreciated
Many Thanks
Timotai
![[thumbsup2] [thumbsup2] [thumbsup2]](/data/assets/smilies/thumbsup2.gif)
(Knowledge is someone else's inspiration)
I have created a table called Team members which looks like below:
Employee Number Firstname Surname Level Access
3333333 User One User
4343434 User Two User
4444444 User Three User
5555555 User Four Administrator
I use Environ$("username"
What I need to do is create a vb script that will do:
1)
lookup result of Environ$("username"
= 5555555 and script has found the user
is user access Admin?
Yes
Then GoTo End
2)
lookup result of Environ$("username"
= 3333333 and script has found the user
is user access Admin?
No
Then GoTo Lock toolbars script
I hope this gives you a good idea of what I am trying to do.
All help is very very much appreciated
Many Thanks
Timotai
![[thumbsup2] [thumbsup2] [thumbsup2]](/data/assets/smilies/thumbsup2.gif)
(Knowledge is someone else's inspiration)