G
Guest
I am making a unbound form with three command buttons. One button opens
another form with access to all the forms and reports for one dept. Each of
the three command buttons do the same thing for a different department.
I used the wizard to make a command button to "on click" event "Open Form".
I want to add a "password" type requirement that would only allow the people
I place in the =[UserName]="jdoe", or [UserName]="jsmith".
If the user's name does not match those names I have listed, I want a
message box to pop up and say "Please see your supervisor for permissions to
this area" and then go back to the main menu.
I have copied the fsoUserName() function from a previous post and used it to
display the current user's name in an unbound text box on the main form.
I thought I could then state in the "On Enter" event of the Command Button
the wording for the password.
It doesn't work tho. What can I do to fix this. I will need to put in
about 5-6 names that would be acceptable to allow each Main Menu button to
allow just those people into the next menus. This would solve multiple
switchboard updating!
I hope someone can help me figure this problem out = it seems simple in
theory! <smile>
Thanks,
Connie
another form with access to all the forms and reports for one dept. Each of
the three command buttons do the same thing for a different department.
I used the wizard to make a command button to "on click" event "Open Form".
I want to add a "password" type requirement that would only allow the people
I place in the =[UserName]="jdoe", or [UserName]="jsmith".
If the user's name does not match those names I have listed, I want a
message box to pop up and say "Please see your supervisor for permissions to
this area" and then go back to the main menu.
I have copied the fsoUserName() function from a previous post and used it to
display the current user's name in an unbound text box on the main form.
I thought I could then state in the "On Enter" event of the Command Button
the wording for the password.
It doesn't work tho. What can I do to fix this. I will need to put in
about 5-6 names that would be acceptable to allow each Main Menu button to
allow just those people into the next menus. This would solve multiple
switchboard updating!
I hope someone can help me figure this problem out = it seems simple in
theory! <smile>
Thanks,
Connie