Results 1 to 4 of 4
  1. #1
    NikoTheBowHunter is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2017
    Posts
    58

    Record lock question

    how do i go about making the following happen?

    while a user is working in a record, it locks it out preventing others from accessing it?



    i.e., user enters a device number and hits the search button(in the form I've created), then the database/access locks the record out until user hits the update button or closes the record out. While the record is locked, no other users have access to it, should they try and access it they receive a pop up message stating user so-in-so is currently updating record.

    can anyone help me out with this or is there a simple tutorial i can be pointed to. i have very little access experience and ever less coding experience. so trying to keep this as simple as possible.

    thanks

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    I think you just need to set the DB's Record Locks property. See: https://support.office.com/en-gb/art...ad=GB&fromAR=1
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    NikoTheBowHunter is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2017
    Posts
    58
    thanks, I wasn't sure if this would work seeing how i only have the one table. but so long as my update form locks only the one record out while the user is updating it, this should work. thanks for the help.

  4. #4
    HiTechCoach's Avatar
    HiTechCoach is offline MS MVP - Access Expert
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2010
    Location
    Oklahoma, USA
    Posts
    702
    Quote Originally Posted by NikoTheBowHunter View Post
    ... seeing how i only have the one table.
    Having only a single table is the root of many issues with a multi-user database. This is no better than an Excel file.

    From my accounting background, I use avoid every editing a record. I only add records. I think in terms of transactions for most data. This also creates a built-in audit trail.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Edited Record Lock?
    By mrmims in forum Forms
    Replies: 1
    Last Post: 09-01-2016, 03:55 PM
  2. Simple Question: How to Lock Form Size
    By dbmiller5 in forum Access
    Replies: 2
    Last Post: 07-29-2016, 10:31 AM
  3. Record Lock when appending
    By Mick99 in forum Access
    Replies: 1
    Last Post: 07-07-2015, 10:11 AM
  4. Replies: 9
    Last Post: 05-12-2012, 12:16 PM
  5. lock a record
    By Nokia N93 in forum Programming
    Replies: 3
    Last Post: 02-21-2011, 02:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums