VBA UserGroup Variable

G

Guest

What is the variable name for the value of the usergroup name for example:

If Usergroup = "Admin" Then
MsgBox ("Test")
End If

I have just put Usergroup in as the variable name but this does not work
what name should be used?
 
G

Guest

Ok i get where your coming from there, what i need to achieve is when people
from user group A log in frmA opens, and when people from user group B log in
frmB opens so i have created a macro to be run on startup with simular code
as to shown below but this obviously doesnt work
 
D

Douglas J. Steele

Did you bother checking the reference I gave?

You can use

If faq_IsUserInGroup ("Admins", CurrentUser) Then
MsgBox "Test"
End If
 

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