Hi All,
I've searched the forum for ages and found lots of threads on security but I'm not quite finding what I think I need.
I have a database with microsoft access user level security in place, this works fine. I now need to add group level security so that only users in a particular group can activate a command button which would open another form. If a user is not a member of that group a message box would be displayed.
I've been trying to achieve this in vba code using If..then...else statements. I can get it to work for individaul users using the Currentuser() expression but I can't seem to be able to refer to a group.
Could someone give an example of how to use code which names a user group?
Many Thanks
John
I've searched the forum for ages and found lots of threads on security but I'm not quite finding what I think I need.
I have a database with microsoft access user level security in place, this works fine. I now need to add group level security so that only users in a particular group can activate a command button which would open another form. If a user is not a member of that group a message box would be displayed.
I've been trying to achieve this in vba code using If..then...else statements. I can get it to work for individaul users using the Currentuser() expression but I can't seem to be able to refer to a group.
Could someone give an example of how to use code which names a user group?
Many Thanks
John