Results 1 to 7 of 7

Thread: record locking

  1. #1
    Join Date
    Jun 2003
    Location
    Bloomington, IN, USA
    Posts
    116

    record locking

    Does anyone know how to keep Access 2k2 from locking the records when you open it? I've been trying to make my database multiuser, and I've been told by reliable people that it can do this out of the box. However, no matter what I try to do, no matter how many different ways I try to open it, it always locks the files and doesn't let anyoen else open it. Anyone got any secrets or tricks they can share with me please?

    Brandon
    -=can you hear me now? ... Good!=-

  2. #2
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    Open Access database - Click on Tools- Options- Advanced - "Default Mode" - Shared

  3. #3
    Join Date
    Jun 2003
    Location
    Bloomington, IN, USA
    Posts
    116
    here's a question, is it possible that the server folder has filesharing turned off? Cus I think thats the problem.

  4. #4
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    If you are doing it programmatically, you can set the locking mode to "optimistic".

  5. #5
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    If you are putting that in network then the share should be open to all or to the groups who needs to access it

  6. #6
    Join Date
    Jun 2003
    Location
    Bloomington, IN, USA
    Posts
    116
    ok, two things:
    1) the difference between pesamestic and optimistic is that pesimistic assumes that the users are pin heads and will cause errors, and optimistic assumes every user in an expert and wont cause any data corruption

    2) is it a good idea to use optimistic for business applications and if so how would one go about adding that into his code?

  7. #7
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    Nope. Good way of doing it is do not allow users to make mistake or corrupt your data. Always think Users are stupid or smart ass (guys who wants to find bugs). for example.

    in a Text field assigned for a date, do not allow users to type anything else other than date and also with date range.

    In a numeric field dont allow them to type text.

    If all the fields are not completed do not allow that records to be added or deleted.

Posting Permissions

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