Re: NT/W2K users as Access Users

From: TC (no_at_email.here)
Date: 03/19/04


Date: Fri, 19 Mar 2004 14:09:00 +1030

Seems fair to me - unless I'm missing something really obvious!

Just a few points.

- Make sure the users can not bypass your startup code by holding the shift
key down when they open the database. There is a property that you can set
to prevent that occurring, but be careful to set the DDL parameter to True
in the CreateProperty statement, when you create that property. Otherwise, a
non-administrative user can run VBA code from any suitable client, to delete
that property from your database. Then they can start it with the shift key
down, bypassing all your startup code.

- Er, this is a multi-user database with a single copy of the MDB file on
the server? That is a sure recipe for (a) database corruption, and (b)
difficulty distributing code updates. The application should be split into a
so-called front-end/back-end structure. The BE database has all of the
tables, but nothing else. The FE database has all of the queries, forms,
reports, macros & modules, and links to the actual tables in the BE. Each
user should have their own copy of the FE - on their own PC, or on the
server.

HTH,
TC

"Bruce Hensley" <bhensley@bechtel.com> wrote in message
news:ulfbB$TDEHA.3348@TK2MSFTNGP11.phx.gbl...
> The following model seems to work for us, but I would appreciate any
advice
> as to the risks, or a simpler/safer way to accomplish the same goals.
>
> The goals are:
>
> - utilize Access user-level security within the application
> - not require users to learn a new password for the application
> - allow authenticated network users to run the app without Access login
>
> We are working on a local intranet, with the MDB and MDW on a fileserver.
>
> We create user accounts in Access with the same user ID as their network
> username, but without passwords.
>
> In Access, there is an AUTOEXEC, or procedure attached to the startup
form,
> that gets the network user ID and compares it to the Access user ID. If
> they don't match, then the application exits. Since the user must first
log
> on to the network with network user ID and password, we know the user is
> valid. If another network user tries to start the app with someone else's
> Access user ID, the app will then exit.
>
> To further simplify the startup, we launch the application using a
VBScript
> file. The VBS file gets the network username and launches the Access app,
> passing it the user ID and a blank password. This way, the user need not
> even be prompted for user ID and password.
>
> Thanks,
> Bruce Hensley
>
>



Relevant Pages

  • Re: NT/W2K users as Access Users
    ... I can't find anything in help about a DDL ... > key down when they open the database. ... bypassing all your startup code. ... If another network user tries to start the app with someone ...
    (microsoft.public.access.security)
  • Re: Help with code Front end back end DB
    ... >> I used some scripting I found from Tony's site in which he uses a database to ... >> automatically update the client db. ... >> have difficulties with shortcuts. ... The problem is the network user name. ...
    (microsoft.public.access.modulesdaovba)
  • Re: I have a computer name but I need the associate user name
    ... The LDB.exe only tracks the list of User's computers name. ... who is logged into my database not just their computer or machine name. ... Environreturns the network user name. ... Doug Steele, Microsoft Access MVP ...
    (microsoft.public.access.modulesdaovba)
  • Re: I have a computer name but I need the associate user name
    ... The LDB.exe only tracks the list of User's computers name. ... who is logged into my database not just their computer or machine name. ... Environreturns the network user name. ... sure whether the machine's Access This Machine From The Network property ...
    (microsoft.public.access.modulesdaovba)
  • Re: Compact and repair problems
    ... got an error that states "Microsoft Access has encountered a problem and ... key down while opening the copy so the startup code doesn't execute. ... module and compile the code if it's not compiled. ... import all objects from this copy into the new database. ...
    (microsoft.public.access.gettingstarted)