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

    is there is a way to make a record locked


    is there is a way to make a record uneditable
    Lock it
    Something like an archive ,, no one can edit it ??

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    in a form or in a table?

    in a form, you can do it in current event, when this record get focus, lock everything, and unlock when it lose focus.

  3. #3
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    Not a specific record, AFAIK. If this is a multi-user environment, what I would do is split the database (thus making them linked tables to the user), and having everything set up through forms. This way, they never get access to the tables themselves.

  4. #4
    Nokia N93 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2010
    Posts
    55
    Hi all

    i tried to use the code
    i made a field in the table with a yes/no status, when i check it , it must lock everything
    but i couldn't find the onCurrent Event

    CAn you help me with a sample db

  5. #5
    vt800c is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2010
    Posts
    23
    Quote Originally Posted by Nokia N93 View Post
    SNIP:i tried to use the code
    i made a field in the table with a yes/no status, when i check it , it must lock everything
    but i couldn't find the onCurrent Event
    The OnCurrent Event is a form-level event

  6. #6
    khalid's Avatar
    khalid is offline MS-Access Developer
    Windows XP Access 2007
    Join Date
    Mar 2010
    Location
    Kuwait
    Posts
    244
    Quote Originally Posted by Nokia N93 View Post
    Hi all

    i tried to use the code
    i made a field in the table with a yes/no status, when i check it , it must lock everything
    but i couldn't find the onCurrent Event

    CAn you help me with a sample db
    Hi, What code you are using to lock the record? if you want to lock/unlock fields on the form when certain condition is true then:

    '-------------------
    if yourcondition is true then
    yourFieldOnTheForm.Locked = true
    else
    yourFieldOnTheForm.Locked = false
    end if
    '--------------------

    The above can be call on the current event of the form

    Best Regards,
    Khalid Afridi

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

Similar Threads

  1. Replies: 1
    Last Post: 11-02-2010, 09:06 AM
  2. Replies: 1
    Last Post: 10-21-2010, 12:02 PM
  3. Replies: 2
    Last Post: 09-24-2009, 08:07 AM
  4. Replies: 3
    Last Post: 06-27-2009, 03:53 PM
  5. make Add Record button work
    By janjan_376 in forum Forms
    Replies: 3
    Last Post: 06-05-2009, 04:22 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