Re: User Levels ?
- From: "Albert D. Kallal" <PleaseNOOOsPAMmkallal@xxxxxxx>
- Date: Wed, 6 Aug 2008 06:39:16 -0600
Is there a way to set user levels to buttons or specific forms with in
the same db?
Keep in mind if your using user level security in ms-access, it only narrows
down to rights for a whole form (and a whole table). So, rights don't extend
down to the field level.
You can however use code to "test" if a menu option or button is legal.
for example, I often disable a menu bar button based on a persons user level
security.
eg:
if IsInGroup(CurrentUser(),"InvoiceDeleteGroup") = true then
CommandBars("myCustomBar").Controls("AdminOptions").Controls("DeleteInvoice"
).Visible = True
end if
So, in the above, if the user is a member of the security group called
DeleteInvoice, then I enable the menu bar option that allows that feature.
You can do the same with a button on a form also.
eg:
me.MyButtionName.enabled = true
As mentioned you would replace the security group "DeleteInvoice" with the
name of the security group you created that users are to be a member of.
I should probably point out that user level security been discontinued for
access 2007 (it still works if you use the mdb format, but not for accDB
format. And, it not 100% clear in your last 3 posts if you are in fact using
ULS, or simply rolling your own security system.
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@xxxxxxx
.
- Follow-Ups:
- Re: User Levels ?
- From: d9pierce@xxxxxxxxx
- Re: User Levels ?
- References:
- User Levels ?
- From: d9pierce@xxxxxxxxx
- User Levels ?
- Prev by Date: Re: lstbox and users
- Next by Date: Looking for Code to Expand Subform Rows Automatically
- Previous by thread: User Levels ?
- Next by thread: Re: User Levels ?
- Index(es):
Relevant Pages
|