Home All Groups Group Topic Archive Search About

User Accounts in Access 2007

Author
20 Nov 2008 11:08 AM
Ickus
Dear All,
I have a database that I am placing on a server via the package wizard &
runtime (i'm the only one with Access).
Before I do this, I need to set up security so that there are 2 types of
user able to use the database, 1 type that is read only & 1 type to edit &
input information.
Please could someone help me with how I go about this.
Thanks

Samuel

Author
20 Nov 2008 2:23 PM
Tom van Stiphout
On Thu, 20 Nov 2008 03:08:16 -0800, Ickus
<Ic***@discussions.microsoft.com> wrote:

There are may ways to do that. Here is a simple one:
At startup time ask Windows who is logged in. See:
http://www.mvps.org/access/api/api0008.htm
I'm assuming you store that value in strLogin.

Have a table with Windows logins and AccessLevel.

At startup time read the AccessLevel of the current user and store it
in a global variable (say g_AccessLevel). E.g.:
g_AccessLevel = DLookup("AccessLevel", "tblSecurity", "Login='" &
strLogin & "'")

In the form_open of each form write:
if g_AccessLevel = "readonly" then Me.AllowEdits = False

-Tom.
Microsoft Access MVP


Show quoteHide quote
>Dear All,
>I have a database that I am placing on a server via the package wizard &
>runtime (i'm the only one with Access).
>Before I do this, I need to set up security so that there are 2 types of
>user able to use the database, 1 type that is read only & 1 type to edit &
>input information.
>Please could someone help me with how I go about this.
>Thanks
>
>Samuel
Are all your drivers up to date? click for free checkup

Author
5 Dec 2008 12:43 PM
Ickus
Tom,

I'm a bit of a novice with the programming,

Please can you explain the following:

I'm assuming you store that value in strLogin.

store it
> in a global variable (say g_AccessLevel) - Where do I store & how?

This is probably childs play for most people, but I'm just getting confused.

Please help once again

Thanks




Show quoteHide quote
"Tom van Stiphout" wrote:

> On Thu, 20 Nov 2008 03:08:16 -0800, Ickus
> <Ic***@discussions.microsoft.com> wrote:
>
> There are may ways to do that. Here is a simple one:
> At startup time ask Windows who is logged in. See:
> http://www.mvps.org/access/api/api0008.htm
> I'm assuming you store that value in strLogin.
>
> Have a table with Windows logins and AccessLevel.
>
> At startup time read the AccessLevel of the current user and store it
> in a global variable (say g_AccessLevel). E.g.:
> g_AccessLevel = DLookup("AccessLevel", "tblSecurity", "Login='" &
> strLogin & "'")
>
> In the form_open of each form write:
> if g_AccessLevel = "readonly" then Me.AllowEdits = False
>
> -Tom.
> Microsoft Access MVP
>
>
> >Dear All,
> >I have a database that I am placing on a server via the package wizard &
> >runtime (i'm the only one with Access).
> >Before I do this, I need to set up security so that there are 2 types of
> >user able to use the database, 1 type that is read only & 1 type to edit &
> >input information.
> >Please could someone help me with how I go about this.
> >Thanks
> >
> >Samuel
>
Author
11 Dec 2008 4:47 PM
Ickus
Tom,

Please could you run through this stage by stage, some of the language you
have used in unfamiliar to me.

Thanks

Samuelo


Show quoteHide quote
"Tom van Stiphout" wrote:

> On Thu, 20 Nov 2008 03:08:16 -0800, Ickus
> <Ic***@discussions.microsoft.com> wrote:
>
> There are may ways to do that. Here is a simple one:
> At startup time ask Windows who is logged in. See:
> http://www.mvps.org/access/api/api0008.htm
> I'm assuming you store that value in strLogin.
>
> Have a table with Windows logins and AccessLevel.
>
> At startup time read the AccessLevel of the current user and store it
> in a global variable (say g_AccessLevel). E.g.:
> g_AccessLevel = DLookup("AccessLevel", "tblSecurity", "Login='" &
> strLogin & "'")
>
> In the form_open of each form write:
> if g_AccessLevel = "readonly" then Me.AllowEdits = False
>
> -Tom.
> Microsoft Access MVP
>
>
> >Dear All,
> >I have a database that I am placing on a server via the package wizard &
> >runtime (i'm the only one with Access).
> >Before I do this, I need to set up security so that there are 2 types of
> >user able to use the database, 1 type that is read only & 1 type to edit &
> >input information.
> >Please could someone help me with how I go about this.
> >Thanks
> >
> >Samuel
>

Bookmark and Share