PC Review


Reply
Thread Tools Rate Thread

Acess 2007 User Groups

 
 
Doctor
Guest
Posts: n/a
 
      2nd Jul 2009

User level security is gone in Acess 2007. That's fine with me.

But what is the best way to setup groups and limit what a user can view/run?
For instance there are forms and reports that I want only higher user groups
to view. Also, there are often tabs on a form that I want to make visible or
invisible based on the users permissions.

I can't find much on this topic in the forums or online. Right now, I am
planning to do all of this by code. Is this the best way to do this. Has
anyone done this type of model before that could point me in the right
direction?

Any help or samples would be tremendously appreciated.
 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      3rd Jul 2009

You can create tables that holds the names of your objects (forms and
reports) and the minimum level needed to view that object. Then cancel the
Open event of the form/report if the user doesn't meet the mimimum. You can
also hide/disable the buttons on your switchboard that the user doesn't have
access to.

If you don't want to store the user names and levels in a table, an
alternative is to give each user a command line switch that indicates their
level.

Of course, none of this is secure, but it may be adequate to keep the
unknowing from the unknowable. Give the tables a name that starts with USys
so Access hides them automatically.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Doctor" <(E-Mail Removed)> wrote in message
news:A6B0BFA5-E239-4BE4-AA95-(E-Mail Removed)...
> User level security is gone in Acess 2007. That's fine with me.
>
> But what is the best way to setup groups and limit what a user can
> view/run?
> For instance there are forms and reports that I want only higher user
> groups
> to view. Also, there are often tabs on a form that I want to make visible
> or
> invisible based on the users permissions.
>
> I can't find much on this topic in the forums or online. Right now, I am
> planning to do all of this by code. Is this the best way to do this. Has
> anyone done this type of model before that could point me in the right
> direction?
>
> Any help or samples would be tremendously appreciated.


 
Reply With Quote
 
Doctor
Guest
Posts: n/a
 
      3rd Jul 2009

I think I understand how this will work for forms and reports. Will canceling
the open event work for subforms without interfereing with the main form
opening?

"Allen Browne" wrote:

> You can create tables that holds the names of your objects (forms and
> reports) and the minimum level needed to view that object. Then cancel the
> Open event of the form/report if the user doesn't meet the mimimum. You can
> also hide/disable the buttons on your switchboard that the user doesn't have
> access to.
>
> If you don't want to store the user names and levels in a table, an
> alternative is to give each user a command line switch that indicates their
> level.
>
> Of course, none of this is secure, but it may be adequate to keep the
> unknowing from the unknowable. Give the tables a name that starts with USys
> so Access hides them automatically.
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
> "Doctor" <(E-Mail Removed)> wrote in message
> news:A6B0BFA5-E239-4BE4-AA95-(E-Mail Removed)...
> > User level security is gone in Acess 2007. That's fine with me.
> >
> > But what is the best way to setup groups and limit what a user can
> > view/run?
> > For instance there are forms and reports that I want only higher user
> > groups
> > to view. Also, there are often tabs on a form that I want to make visible
> > or
> > invisible based on the users permissions.
> >
> > I can't find much on this topic in the forums or online. Right now, I am
> > planning to do all of this by code. Is this the best way to do this. Has
> > anyone done this type of model before that could point me in the right
> > direction?
> >
> > Any help or samples would be tremendously appreciated.

>
>

 
Reply With Quote
 
Allen Browne
Guest
Posts: n/a
 
      3rd Jul 2009

You can do it in a subform too. If you do this, the subform control may not
contain any subform, and so any code that uses:
Me.[Sub1].Form
will need to be replaced to see if Sub1 actually contains a SourceObject
before you try to refer to it.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Doctor" <(E-Mail Removed)> wrote in message
news:F9A38013-72F6-4CF5-9200-(E-Mail Removed)...
>I think I understand how this will work for forms and reports. Will
>canceling
> the open event work for subforms without interfereing with the main form
> opening?
>
> "Allen Browne" wrote:
>
>> You can create tables that holds the names of your objects (forms and
>> reports) and the minimum level needed to view that object. Then cancel
>> the
>> Open event of the form/report if the user doesn't meet the mimimum. You
>> can
>> also hide/disable the buttons on your switchboard that the user doesn't
>> have
>> access to.
>>
>> If you don't want to store the user names and levels in a table, an
>> alternative is to give each user a command line switch that indicates
>> their
>> level.
>>
>> Of course, none of this is secure, but it may be adequate to keep the
>> unknowing from the unknowable. Give the tables a name that starts with
>> USys
>> so Access hides them automatically.
>>
>> "Doctor" <(E-Mail Removed)> wrote in message
>> news:A6B0BFA5-E239-4BE4-AA95-(E-Mail Removed)...
>> > User level security is gone in Acess 2007. That's fine with me.
>> >
>> > But what is the best way to setup groups and limit what a user can
>> > view/run?
>> > For instance there are forms and reports that I want only higher user
>> > groups
>> > to view. Also, there are often tabs on a form that I want to make
>> > visible
>> > or
>> > invisible based on the users permissions.
>> >
>> > I can't find much on this topic in the forums or online. Right now, I
>> > am
>> > planning to do all of this by code. Is this the best way to do this.
>> > Has
>> > anyone done this type of model before that could point me in the right
>> > direction?
>> >
>> > Any help or samples would be tremendously appreciated.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
User Groups in Access 2007 Dom Microsoft Access Security 2 28th Jan 2010 09:48 PM
Acess 2003 concurrent with acess 2007 Scott Microsoft Access 4 3rd Mar 2009 04:36 AM
Protect the acess to a table in Acess 2007 Jorge Microsoft Access 0 12th Mar 2008 04:21 PM
User Properties/Member Of/Select Groups - groups not listed =?Utf-8?B?QW5kcmV3IEZpdmlhbg==?= Windows XP General 0 27th Jan 2004 05:16 PM
Groups Policy to assign user to Local Machine Power Users Groups. KA Kueh Microsoft Windows 2000 Group Policy 3 19th Sep 2003 07:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:27 PM.