PC Review


Reply
Thread Tools Rate Thread

Determine CurrentUser group association

 
 
=?Utf-8?B?UGlwJydu?=
Guest
Posts: n/a
 
      27th Jul 2005
My question takes the last post "Can I set access rights and passwor..." by
melly 666 a bit farther. I would like to limit access to multiple users
information to certain permission groups. I have 4 permissions groups: User -
can only access current user information, Advisior - can access multiple user
information from same location, Controller - can access all information and
set permissions, and Admin - can access and modify all objects and
permissions. I've already set up the permissions for various forms and
objects but i need to determine the group that the currentuser belongs to in
order to limit the records in each form.

Thanks in advance
 
Reply With Quote
 
 
 
 
Rick B
Guest
Posts: n/a
 
      27th Jul 2005
You would have to build a function called "IsInGroup". Do a search for that
keyword and you should find numerous previous posts that will instruct you.

--
Rick B



"Pip''n" <(E-Mail Removed)> wrote in message
news:69DDC718-1616-4E6F-A933-(E-Mail Removed)...
> My question takes the last post "Can I set access rights and passwor..."

by
> melly 666 a bit farther. I would like to limit access to multiple users
> information to certain permission groups. I have 4 permissions groups:

User -
> can only access current user information, Advisior - can access multiple

user
> information from same location, Controller - can access all information

and
> set permissions, and Admin - can access and modify all objects and
> permissions. I've already set up the permissions for various forms and
> objects but i need to determine the group that the currentuser belongs to

in
> order to limit the records in each form.
>
> Thanks in advance



 
Reply With Quote
 
TC
Guest
Posts: n/a
 
      28th Jul 2005
Further to what Rick said, remember that a user can be (and often is)
in more than one group.

This code enumerates the current user's groups:

(untested)

dim g as group
for each g in dbengine(0).users(currentuser()).groups
msgbox g.name
next

HTH,
TC

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CurrentUser's Group. Andrew Microsoft Access 2 6th May 2010 02:14 PM
Determine the Groups for CurrentUser Vayse Microsoft Access Forms 3 25th Apr 2006 04:24 PM
File Association and Group Policies and Windows XP =?Utf-8?B?SkQ=?= Microsoft Windows 2000 Group Policy 2 1st Sep 2005 03:41 PM
Identifying if CurrentUser() is in the 'Admins' Security Group =?Utf-8?B?Qnl6YW50aW5l?= Microsoft Access Security 10 20th Dec 2004 03:38 AM
CurrentUser vs Group Member Bonnie Microsoft Access 12 24th Feb 2004 08:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:45 PM.