K
Kay
Hi
I have set user groups on my database using the security feature
provided by Access2000. I want to display a form based on the user who
logs in. I have used the following code:
If CurrentUser() = "Admin" Then
DoCmd.OpenForm "ManagerOptions"
Else
If CurrentUser() = "Users" Then
DoCmd.OpenForm "UserOptions"
End If
End If
This works fine if I log in as admin as all the admins will login under
that username. But the group of users have their own login names so
using this code does not work for users. Does anyone know how I can get
it to load a form based on the group te user is part of.
Any help is very much appreciated
I have set user groups on my database using the security feature
provided by Access2000. I want to display a form based on the user who
logs in. I have used the following code:
If CurrentUser() = "Admin" Then
DoCmd.OpenForm "ManagerOptions"
Else
If CurrentUser() = "Users" Then
DoCmd.OpenForm "UserOptions"
End If
End If
This works fine if I log in as admin as all the admins will login under
that username. But the group of users have their own login names so
using this code does not work for users. Does anyone know how I can get
it to load a form based on the group te user is part of.
Any help is very much appreciated