Permissions within the appl

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: WSF (someone_at_microsoft.com)
Date: 08/01/04


Date: Sun, 1 Aug 2004 12:15:42 +1200

Access97
I would like to set up user permissions within the Access APP - driven say
on opening the program.
Users in this report program are easily identified by CurrentUser.
The types of permissions are mainly Visible True/False applying to Form
Tabs(pages) and some controls on various forms.
I thought of using a lookup table with DLookup functions running through a
list - a formula for each control?
For example
If DLookup("[Sales]", "[tblPermissions]", "User = '" & CurrentUser & "'") =
True Then Forms!frmMain.tabSales.Visible = True
where [Sales] is the Yes/No fieldname in [tblPermissions] for the page
[tabSales] on the form [frmMain]

But having such a table, assuming a record was based on a user, with
numerous fields (1 for each control), seemed cumbersome.
I have used explicit names for all the objects and controls in my MDB.

Is there a better way of doing this? And in a way I can set up an Admin form
so a designated user can apply changes to the permissions (like clicking
Yes/No checkboxes on a form).

Any example I can be pointed to?
Any help gratefully appreciated.

WSF



Relevant Pages

  • RE: What server hardening are you doing these days?
    ... hardening in windows is that consulting within the financial sector as I ... permissions on servers in a granular fashion in order to get their ... applications to work without compromising the security of their ... "...Discretionary controls are not a replacement for mandatory controls. ...
    (Focus-Microsoft)
  • Hosted WinForms Controls and CAS
    ... I am workign with a small intranet app for a customer and we've decided to use Hosted WinForms controls for several really complicated code we have. ... I am at the point where I can detect the framework requirements and the security requirement and forward the user to a page to download an installable package to do the security work of elevating permissions. ... The installer is *not* installing the assembly with the controls so that we can download new versions as necessary. ...
    (microsoft.public.dotnet.security)
  • Re: Registry Permissions
    ... Registry permissions are almost always inherited from the ... permissions to controls. ... If you take a look at the keys inside the registry, ... inherited from the parent key. ...
    (microsoft.public.vb.general.discussion)
  • Re: Registry Permissions
    ... >> I want to allow all users to use all the controls, ... >> is that they don't have correct registry permissions, ... > It sounds like you and your administrator need to talk. ...
    (microsoft.public.vb.general.discussion)