Function IsInGroup Sample Database (IsInGroup.mdb) |
Post Reply |
Author | |
Khyle Nathe
Contributor Joined: 30 Jun 2008 Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 10 Jul 2008 at 3:42am |
This contains a simple function: Function IsInGroup, which can be used for determining which Group the CurrentUser belongs to. It has been posted in many forms on the Listservs, but I thought it would be a helpful example for others. Usage Example - to make a button called "cmdAdmin" visible to the CurrentUser if they are a member of the Admins group, otherwise make it false - call in the OnOpen Event of a Form. If IsInGroup(CurrentUser, "Admins") Then Me.cmdAdmin.Visible = True Me.cmdAdmin.Enabled = True Else Me.cmdAdmin.Visible = False Me.cmdAdmin.Enabled = False End If
|
|
--
Email: (no longer valid. If you have any information, please contact Roger Carlson through this forum.) |
|
Sponsored Links | Want a good read? Try The Summer of His Life (available on Amazon!) |
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |