PC Review


Reply
Thread Tools Rate Thread

Asking if User Is Member of Group Using Code

 
 
Casey
Guest
Posts: n/a
 
      10th Sep 2003
Hi,

I want to use an If statement. With that If
statement I want to say:

If "Katy is a member of the Admins group" Then
Do this
Else
Do this
EndIf

The part that I need a code example of is enclosed in
the quotation marks as "Katy is a member of the Admins
group". I would appreciate any advice on what the code
would be to say that part of the statement.

Thanks,

Casey
 
Reply With Quote
 
 
 
 
Bruce M. Thompson
Guest
Posts: n/a
 
      10th Sep 2003
> I want to use an If statement. With that If
> statement I want to say:
>
> If "Katy is a member of the Admins group" Then
> Do this
> Else
> Do this
> EndIf
>
> The part that I need a code example of is enclosed in
> the quotation marks as "Katy is a member of the Admins
> group". I would appreciate any advice on what the code
> would be to say that part of the statement.


Download and read the Access Security FAQ. It contains the code to do just that,
and more. It is available at
http://support.microsoft.com/default.aspx?scid=kb;[LN];207793.

--
Bruce M. Thompson, Microsoft Access MVP
(E-Mail Removed) (See the Access FAQ at http://www.mvps.org/access)
>> NO Email Please. Keep all communications

within the newsgroups so that all might benefit.<<


 
Reply With Quote
 
Casey
Guest
Posts: n/a
 
      10th Sep 2003
I received a KB Article is not available message. No
information found in that.

>-----Original Message-----
>> I want to use an If statement. With that If
>> statement I want to say:
>>
>> If "Katy is a member of the Admins group" Then
>> Do this
>> Else
>> Do this
>> EndIf
>>
>> The part that I need a code example of is enclosed

in
>> the quotation marks as "Katy is a member of the Admins
>> group". I would appreciate any advice on what the code
>> would be to say that part of the statement.

>
>Download and read the Access Security FAQ. It contains

the code to do just that,
>and more. It is available at
>http://support.microsoft.com/default.aspx?scid=kb;

[LN];207793.
>
>--
>Bruce M. Thompson, Microsoft Access MVP
>(E-Mail Removed) (See the Access FAQ at

http://www.mvps.org/access)
>>> NO Email Please. Keep all communications

> within the newsgroups so that all might benefit.<<
>
>
>.
>

 
Reply With Quote
 
Casey
Guest
Posts: n/a
 
      10th Sep 2003
I found it, I had left an extra period on the address
link(end of sentence period).

Thank you,

Casey
>-----Original Message-----
>I received a KB Article is not available message. No
>information found in that.
>
>>-----Original Message-----
>>> I want to use an If statement. With that If
>>> statement I want to say:
>>>
>>> If "Katy is a member of the Admins group" Then
>>> Do this
>>> Else
>>> Do this
>>> EndIf
>>>
>>> The part that I need a code example of is

enclosed
>in
>>> the quotation marks as "Katy is a member of the Admins
>>> group". I would appreciate any advice on what the code
>>> would be to say that part of the statement.

>>
>>Download and read the Access Security FAQ. It contains

>the code to do just that,
>>and more. It is available at
>>http://support.microsoft.com/default.aspx?scid=kb;

>[LN];207793.
>>
>>--
>>Bruce M. Thompson, Microsoft Access MVP
>>(E-Mail Removed) (See the Access FAQ at

>http://www.mvps.org/access)
>>>> NO Email Please. Keep all communications

>> within the newsgroups so that all might benefit.<<
>>
>>
>>.
>>

>.
>

 
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
Decide whether a user is member of a group peter71wallin@yahoo.se Microsoft Windows 2000 Active Directory 4 22nd Jun 2006 02:50 AM
Check group member ship or a user Sameh Ahmed Microsoft VB .NET 9 21st Feb 2005 10:46 AM
Using Net Group or GPO to add member to Power User Group OJ Microsoft Windows 2000 Active Directory 2 24th Sep 2004 05:39 PM
Is Current User a member of a Group Reed Phillips Microsoft Outlook VBA Programming 0 20th Jul 2003 02:38 AM
printing the member contents fo a user group Chuck Thompson Microsoft Windows 2000 Active Directory 1 1st Jul 2003 10:40 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:12 AM.