Results 1 to 7 of 7
  1. #1
    Magnus1982 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2017
    Posts
    29

    Locking fields after fill


    Hi,

    Let's have a form which have 10 fields and after fill up some of the field for example five that's five should lock up. To change this five (locked) in the future should be check box which can unlock that's filed to make modification. For me is to hard...

  2. #2
    jwhite is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Dec 2012
    Location
    North Carolina
    Posts
    349
    1. On fill of one of the "fields" (controls on the form), in the AfterUpdate event, if the control has a value then set the appropriate checkbox control to False, and lock the control (Me.ContrlName.Locked = True).

    2. On tick of a check box control, test if the value is True - if so, then unlock the corresponding control for data entry.

  3. #3
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,511
    If they just have to click a box to be able to edit the fields again, what's the point of locking in the first place?

  4. #4
    jwhite is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Dec 2012
    Location
    North Carolina
    Posts
    349
    Perhaps to protect against "accidental data updates".

  5. #5
    Magnus1982 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2017
    Posts
    29
    hi,

    the thing is , In one I have date ,operator, batch number, parts number , aliment check, power check an on the same form on left site of screen i have aliment verification ,date veryfication ,operator. . Now operator is writing down first few data (bolt words) after 24h is doing verification for aliment (Tilted and underlined). That's why i need first data (bold words) locked after fill in. My way with access is beginning . When i will sort this problem i need to do the barcode read and logins for diffrent operators . I hope on this forum i will find help.Also i assume after finish my work on this i will know solid basic on access. Sorry for English it is not my first langue

  6. #6
    jwhite is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Dec 2012
    Location
    North Carolina
    Posts
    349
    So this particular problem is solved? If not, please explain.

  7. #7
    Magnus1982 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2017
    Posts
    29
    Yes I solved. Tnx

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

Similar Threads

  1. Locking Fields on a Table on a Form
    By Loup in forum Access
    Replies: 18
    Last Post: 05-02-2017, 06:47 AM
  2. Locking Fields
    By JulieAHop in forum Programming
    Replies: 2
    Last Post: 02-11-2017, 01:15 AM
  3. Locking and graying out fields in Access
    By ZandyRox in forum Forms
    Replies: 3
    Last Post: 08-16-2014, 08:15 AM
  4. Locking fields in Access form
    By sk88 in forum Access
    Replies: 10
    Last Post: 06-04-2012, 01:40 PM
  5. Locking fields
    By Icewolf0927 in forum Forms
    Replies: 3
    Last Post: 09-23-2010, 12:01 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