Asking if User Is Member of Group Using Code

C

Casey

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
 
B

Bruce M. Thompson

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.
 
C

Casey

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 address removed) (See the Access FAQ at http://www.mvps.org/access)within the newsgroups so that all might benefit.<<


.
 
C

Casey

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-----
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 address 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.<<


.
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top