Results 1 to 6 of 6
  1. #1
    evander is offline Competent Performer
    Windows 7 Access 2003
    Join Date
    Apr 2010
    Location
    Philippines
    Posts
    206

    Post Lock the controls and subforms when user moves to the next record

    Hi everyone!

    I have a form and a subform. What I want is to lock the controls of the form and its subforms when the user moves away from the current record of the main form, so that the user is prevented from editing its historical entries.

    I have tried using the "Data Entry" property of a form, but its behavior is different from what I want to achieve.

    Hoping to receive replies.
    Thanks!

    Joe

  2. #2
    evander is offline Competent Performer
    Windows 7 Access 2003
    Join Date
    Apr 2010
    Location
    Philippines
    Posts
    206
    I also want the form's controls and subforms to be enabled again when the user creates a new record.

  3. #3
    evander is offline Competent Performer
    Windows 7 Access 2003
    Join Date
    Apr 2010
    Location
    Philippines
    Posts
    206
    I just discovered the On Current event. Hope this works for me

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You are solving your problems faster that we can respond. You will get a Current Event *every* time as you move to a record.

  5. #5
    evander is offline Competent Performer
    Windows 7 Access 2003
    Join Date
    Apr 2010
    Location
    Philippines
    Posts
    206
    Thanks for responding RuralGuy.

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You are welcome. Glad to hear you solved your issue.

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. How to TRULY lock access to tables
    By is49460 in forum Security
    Replies: 20
    Last Post: 02-01-2013, 03:41 PM
  3. Automatically Lock Fields
    By Toolman in forum Database Design
    Replies: 2
    Last Post: 05-27-2010, 10:36 AM
  4. Controls don't work on subforms
    By rscott7706 in forum Forms
    Replies: 8
    Last Post: 03-07-2010, 10:17 PM
  5. txtbox moves everything else down
    By cowboy in forum Access
    Replies: 2
    Last Post: 01-06-2010, 05:45 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