+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 11 to 14 of 14

Thread: The database could not lock table 'tablename' because it is already in use by another

  1. #11
    Barn Regular Colper is an unknown quantity at this point Colper's Avatar
    Join Date
    Dec 2009
    Posts
    67
    Rep Power
    3

    Thanks for your help once again. I see now, this database I am talking about has more than 163,000 records and may be this is the reason it locks. I will try this but manually, great explanation there.

    Now, one concern I have is how I link this to the network. The way is working now is; I created a shortcut pointing to the "S" drive and the security.mdw file on the network and then I place it on a share folder on the desktop. I didn't have to install anything on each user's PC. Sorry if I am not understanding you. I am still learning. I consider myself an intermediate in Access.

    God Bless!
    Last edited by Colper; December 11th, 2009 at 10:15 PM.

  2. #12
    Moderator don94403 is a jewel in the rough don94403 is a jewel in the rough don94403 is a jewel in the rough don94403's Avatar
    Join Date
    Mar 2008
    Location
    San Mateo, CA, USA
    Posts
    313
    Blog Entries
    8
    Real Name
    Don Ravey
    Rep Power
    6

    Quote Originally Posted by Colper View Post
    Now, one concern I have is how I link this to the network. The way is working now is; I created a shortcut pointing to the "S" drive and the security.mdw file on the network and then I place it on a share folder on the desktop. I didn't have to install anything on each user's PC.
    Right, that's why you're having problems. Although this isn't made clear in the Microsoft documentation, it is well established throughout the professional developer community that there is only one way to safely deploy a multi-user application on a local network:
    1. Split the database. One .mdb will contain TABLES and nothing else. This is the .mdb that needs to be secured.
    2. The other .mdb (the "front-end") will contain Queries, Forms, Reports, Modules (and if you use them, Macros). Each user will have A COPY of this .mdb on their work station. (This also means that each user must have Access installed on their work station!)
    3. The "front-end" .mdb's are independent of each other and do not cause any interference, because they do not contain ANY data. They all LINK to the data, which at all times remains stored in the common "back-end" .mdb. Thus, there is just one .mdw workgroup file, that manages the record locking for all the users.
    The linking is the key element. You can link to remote data sources with the File->Get External Data->Link Tables menu selection. You can manage your linked tables with the Linked Table Manager in the Tools->Database Utilities->Linked Table Manager menu selection.
    question = 2B || !2B

  3. #13
    Barn Regular Colper is an unknown quantity at this point Colper's Avatar
    Join Date
    Dec 2009
    Posts
    67
    Rep Power
    3

    I will try this beauty. Thank you so much.

    God Bless you!

  4. #14
    Moderator don94403 is a jewel in the rough don94403 is a jewel in the rough don94403 is a jewel in the rough don94403's Avatar
    Join Date
    Mar 2008
    Location
    San Mateo, CA, USA
    Posts
    313
    Blog Entries
    8
    Real Name
    Don Ravey
    Rep Power
    6

    If you have problems implementing this, return here and we'll try to help you get through it.

    One other thing: a by-product advantage of splitting your database is that it makes it easier to introduce changes to forms, reports, etc. When that is needed, you can make changes and test them without interfering with use of the database. When changes have been tested, you can then replace each user's copy of the front-end. If it becomes necessary, you can even automate the upgrading of the front-ends, although this requires a bit of somewhat tricky programming.
    question = 2B || !2B

+ Reply to Thread
Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. "File sharing lock count exceeded…"
    By Colper in forum Microsoft Access
    Replies: 2
    Last Post: December 7th, 2009, 10:44 PM
  2. Delete selected information from database from table
    By Arshan in forum ASP Development
    Replies: 3
    Last Post: September 2nd, 2009, 11:27 AM
  3. Database table design
    By Ziggy in forum Database Design Help
    Replies: 17
    Last Post: February 16th, 2009, 01:55 PM
  4. Lock page/recordset?
    By Rebelle in forum ASP Development
    Replies: 37
    Last Post: October 30th, 2008, 04:34 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO