E
Emma Hope
I have a secured database split into front and back ends. I have two
security groups FirstLevel and SecondLevel, each group can see, access and do
different things in the database.
However both groups can use the main form [frmClientDetails], there is one
control on the form [txtClientName] that can currently be changed by both
groups, i wish to change this so that only the SecondLevel group can change
it. My only options on the "User and Group Permissions" is to change the
level on the whole table or form.
Is there anyway that i can write a simple macro or vba code that says
something along the lines of
If CurrentUser() is in FirstLevel Group then [txtClientName].locked = True
otherwise [txtClientName].locked = False
The If statement is relatively easy, what i don't know how to do is get the
user security group information into it.
Thanks for your help.
security groups FirstLevel and SecondLevel, each group can see, access and do
different things in the database.
However both groups can use the main form [frmClientDetails], there is one
control on the form [txtClientName] that can currently be changed by both
groups, i wish to change this so that only the SecondLevel group can change
it. My only options on the "User and Group Permissions" is to change the
level on the whole table or form.
Is there anyway that i can write a simple macro or vba code that says
something along the lines of
If CurrentUser() is in FirstLevel Group then [txtClientName].locked = True
otherwise [txtClientName].locked = False
The If statement is relatively easy, what i don't know how to do is get the
user security group information into it.
Thanks for your help.