Connecting Tech Pros Worldwide Help | Site Map

Lock an access db

  #1  
Old November 13th, 2005, 02:28 PM
Bob
Guest
 
Posts: n/a
I am look for a technique to lock an access db from being changed. The
db is to be view by lots of users but I do not want any of them to
add, delete or change any records but there are two users which will
be change the db records, if this can be done using visual basic this
would be ideal as the shell as been written in vb6.

--
Bob
  #2  
Old November 13th, 2005, 02:28 PM
Tom van Stiphout
Guest
 
Posts: n/a

re: Lock an access db


On Wed, 07 Sep 2005 10:01:28 GMT, Bob <goff1234@NOSPAM.ntlworld.com>
wrote:

Depends on how much security you need and how much you can control the
environment. Here are some suggestions:
* Put the back-end on a share that's readonly for most.
* Give most people a shortcut with the /readonly command line switch.
* Check the Windows user name, and write code such as this in all
forms:
Me.AllowEdits = (strWindowsUserName = "ntlworld\golff1234")
* Use Access Security - note: this is an advanced topic

-Tom.

[color=blue]
>I am look for a technique to lock an access db from being changed. The
>db is to be view by lots of users but I do not want any of them to
>add, delete or change any records but there are two users which will
>be change the db records, if this can be done using visual basic this
>would be ideal as the shell as been written in vb6.[/color]

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
creating a vb script or batch file to open/close an ACCESS DB in a non-fixed location foltac answers 0 June 18th, 2009 03:24 PM
Please help: Cant get rid of lock on the MS access DB Joe answers 1 November 20th, 2005 10:58 PM
Asp.net runtime error - multiple users with Access Db mark answers 6 November 17th, 2005 10:32 PM
Concurrent Web- and direct access to an Access DB CJM answers 12 July 19th, 2005 02:09 PM