Results 1 to 4 of 4
  1. #1
    Nokia N93 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2010
    Posts
    55

    Question lock a record


    Hiii
    i have created a payroll using access 2007. is there an option to lock only one specific record rather than the whole table.

    For example, if John is no longer an emplyee i want to lock it and never be able to unlock it again.

    if you can help me in the sample file

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    there's no such thing as "locking". you can do a number of things in the absense of that though. Like greyed out records, deleting records, throwing them to an 'archive' table, etc...

    as a side note, no one that I know of deletes any information that has existed in the past. It's simply stored, in case it's needed ever again. You should always do this sort of thing too, because computers are powerful enough nowadays to store almost an infinite amount of data.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,724
    you may want to move the record(s) involved to an Archive table.
    If you allow user access only through Forms, then you can prevent people(general user) from seeing/touching the records. Some specific Admin functions may have to have access to the Archive table, but only through a form designed for that purpose.

    For info on How Access does Locking here is an older link that has examples.
    http://www.developer.com/tech/articl...ccess-2000.htm

  4. #4
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by orange View Post
    you may want to move the record(s) involved to an Archive table.
    hey orange,

    no offense man, but reiterating what experienced professionals say on this site is really not cool. It doesn't contribute anything to the thread, and as a matter of fact, it makes you look pretty incompetent.

    FYI!

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

Similar Threads

  1. Exclusive access/DB lock
    By Boru in forum Access
    Replies: 18
    Last Post: 07-28-2014, 01:38 AM
  2. Lock Down
    By KevinMCB in forum Forms
    Replies: 2
    Last Post: 02-14-2011, 03:21 PM
  3. Lock back-end DB with VBA
    By somm in forum Programming
    Replies: 5
    Last Post: 12-31-2010, 01:38 AM
  4. Lock Record when "Add" button is pressed
    By jo15765 in forum Access
    Replies: 34
    Last Post: 11-28-2010, 08:50 PM
  5. Replies: 5
    Last Post: 06-29-2010, 06:10 AM

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