Results 1 to 7 of 7
  1. #1
    tanyalee123 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2013
    Posts
    51

    Question Edit Button for Locked Form?

    Hello!
    The purpose of my database is to enter information from a questionnaire. I have already loaded the personal information of the participants into the database. Because I have loaded it already, I want the fields to be locked so the data entry people don't accidentally type over someone's name, etc. However, I also need them to be able to change the information if it is different on the paper questionnaire.



    What is the best method of allowing for edits but keeping the form fields locked initially? I tried to create a button that would open the form to editing (which seems to me would be the easiest thing to do) but when I tried to create a macro for the button, I didn't see an edit choice.

    Thank you for any ideas!
    Tanya

  2. #2
    mrojas is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2013
    Location
    Concord California
    Posts
    72
    I'm sure that there are other ways of achieving this, so here's my suggestion:
    Set all fields to .Locked=True
    Then for each field add .Locked=False on the DoubleClick event. If there many fields, unlock them in a loop.
    This will give the user the ability to unlock only the field that may need editing.

  3. #3
    tanyalee123 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2013
    Posts
    51
    Quote Originally Posted by mrojas View Post
    I'm sure that there are other ways of achieving this, so here's my suggestion:
    Set all fields to .Locked=True
    Then for each field add .Locked=False on the DoubleClick event. If there many fields, unlock them in a loop.
    This will give the user the ability to unlock only the field that may need editing.
    Hmmmm, I just get an error if I do that. ?? Is this what it should look like? FirstName.Locked=False on the DoubleClick event?

  4. #4
    lfpm062010 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Location
    US
    Posts
    415
    Try

    Me.FirstName.Locked = False

  5. #5
    tanyalee123 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2013
    Posts
    51
    Thank you both...I think I was just putting it in the wrong place, but it works. I like this idea because they would only be needing to edit a field here or there, so this is perfect. Thank you!!!

    Tanya

  6. #6
    mrojas is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2013
    Location
    Concord California
    Posts
    72
    Buttons cannot be locked, only enable or disable and make visible or not.

  7. #7
    mrojas is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2013
    Location
    Concord California
    Posts
    72
    If problem is solved, please mark as such.

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

Similar Threads

  1. Replies: 5
    Last Post: 11-06-2013, 02:49 PM
  2. Replies: 1
    Last Post: 05-31-2013, 08:53 AM
  3. Edit button in a form?
    By Aleksandra in forum Forms
    Replies: 8
    Last Post: 04-27-2012, 12:42 AM
  4. Edit button not working
    By elamaranr in forum Access
    Replies: 0
    Last Post: 07-25-2011, 01:45 PM
  5. Forms Locked in Edit Only
    By cassidym in forum Forms
    Replies: 3
    Last Post: 09-14-2010, 07:40 AM

Tags for this Thread

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