Re: can't open shared db

From: Rick B (anonymous_at_discussions.microsoft.com)
Date: 06/28/04

  • Next message: Rick B: "Re: can't open shared db"
    Date: Mon, 28 Jun 2004 15:49:07 -0500
    
    

    First, you ned to split your database and get users to run their own
    front-end copies on their local hard drive.

    To fix the problem, copy the databse file to another drive (your hard drive)
    try to open it. You should get the same error. Select "yes" to repair it.
    It should work this time. Copy the repaired file back to the network folder
    and overwrite the old copy. Delete the LDB file in that folder.

    Everyone should be able to work now.

    Rick B

    "Heapy" <heapyh@alumni.uwo.ca> wrote in message
    news:%23n$AnBVXEHA.1496@TK2MSFTNGP10.phx.gbl...
    Here's the situation:

    - My db is located on a shared network folder. It's security (.mdw) file is
    in the same network directory as the db.
    - db users are given a shortcut to access the db, which runs access from the
    local ws, opens the db on the target network share, with the workgroup
    switch also specifying the .mdw to use to open the db.

    All ran fine for the last three months, then all of a sudden (i.e. this
    morning), an error when attempting to access the db:

    "The database xxx needs to be repaired or isn't a database file" "You or
    another user may have unexpectedly quit Microsoft Access while a Microsoft
    Access database was open. Do you want Microsoft Access to attempt to repair
    the database?"

    - When I select "YES", one of two things will happen:

    a) if another user was able to succesfully sign on (i.e. before me), I'll
    get an error message to the effect that the db is already open exclusively
    by another user (and the user information on that other user disclosed by
    Access happens to be me, which is weird as I'm just in the process of
    signing on)
    b) if another user is not currently signed on, Access may or may not proceed
    with the repair/compacting process. If the repair/compacting process is
    allowed to run, upon completion all seems to be OK until the problem
    restarts all over again.

    A couple of notes:

    - I've been able to ascertain that just before the problem occurs (i.e. I or
    someone else is denied access to the db) a PREVIOUS user who has just signed
    off will not have had his/her entry cleared from both the db lock file nor
    from the .mdw lock file. I can confirm users exit the db "properly" because
    my code intercepts and cancels the close event, in order to perform some
    logging, and then executes a DoCmd.Quit to clean things up. Users who are
    able to connect have not reported anything unusual about their sessions, and
    the exit process runs as it always has. The only noticeable difference seems
    to be (as mentioned) that the user's entries are not being cleared from the
    locking files.

    - Repairing and compacting the db does fix the problem, however this is only
    possible after everyone who has been able to gain entry has exited, leaving
    no one connected. In this case, the repair/compact process seems to
    co-operate as long as it's initiated by the user who's entry in the locking
    file is "stuck".

    I have never seen this before - and what's even more strange is that this
    thing ran fine for months. The ONLY changes that were made (recently) that
    might be cause for concern relate to some security changes, in that all
    users (except the db admins) receive their permission to access querries and
    forms by virtue of their membership in one of several groups they may be a
    part of, whereas the original design saw several groups having access to a
    query or form. Table access is read only, with write permissions granted
    through the use of owner's permission querries.

    Finally, I have noticed (... when I am able to connect) that at times the db
    will complain before updating a record through an error message something to
    the effect that the file "xxx", where "xxx" is the path/filename to the db
    the user is signed on to, is not in a recognized format, which doesn't make
    a lot of sense. "Help" offers the explanation that this error may occur in
    the event of a record commital problem where another user is holding
    uncommitted records... this is also a new problem.

    Sorry for the long message - I'm stumped. Any ideas?

    Thx
    HWH


  • Next message: Rick B: "Re: can't open shared db"

    Relevant Pages

    • Re: cant open shared db
      ... You are not required to split your database to fix this problem now, ... Select "yes" to repair it. ... local ws, opens the db on the target network share, with the workgroup ... with the repair/compacting process. ...
      (microsoft.public.access.security)
    • Re: isnt an index in this table error in access 97 database
      ... Oddly it wouldn't let me run repair, ... compact, but otherwise it's all set now. ... he tried to open up their database which has the front ... When this user opens the database it gives a Runtime error ...
      (microsoft.public.access.externaldata)
    • RE: Local Copy: Will It Solve Read Only Problem?
      ... privileges to the folder holding the database file. ... go over to the General tab and turn off Compact on ... You must run compact and repair in the BE if you want it compacted and ... However, if someone else opens ...
      (microsoft.public.access.tablesdbdesign)
    • Re: isnt an index in this table error in access 97 database
      ... That may be enough, but I'd be inclined to open the frontend, delete the links, recreate them, Compact and Repair it. ... he tried to open up their database which has the front ... When this user opens the database it gives a Runtime error ...
      (microsoft.public.access.externaldata)
    • Re: Tracking Log In and Log Out times of Users
      ... The fact that the database is on the server should be irrelevant. ... Type mismatch and then highlights Set rst = ... On my startup form, (that opens every time the database is open, ... I then went to the load ...
      (microsoft.public.access.modulesdaovba)