Results 1 to 4 of 4
  1. #1
    nishant.dhruve is offline Advanced Beginner
    Windows 7 64bit Access 2013 64bit
    Join Date
    Aug 2016
    Posts
    34

    Locking Field Records

    Hi
    So as you can see, i want to lock the field SOPDATE which is already filled in with date but i want to allow my user to enter data in the field where its empty.


    is there any way to do this
    Click image for larger version. 

Name:	Capture.JPG 
Views:	16 
Size:	193.9 KB 
ID:	27313

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    you cannot lock/ unlock separate rows,
    all dates are locked, or all unlocked.
    when user selects the record, THEN you can determine whether to lock it or not.

    event when user changes records:
    Code:
    sub form_onCurrent()
      txtDate.locked = not IsNull(txtDate)
    end sub

  3. #3
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    Or have an event that puts the date in to todays date. Assuming you want that date.

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    You could use the current event to lock/unlock a field or fields.
    You move to a record, the current event fires checking the value of the specific field(s). If the field has a date, lock the field, otherwise unlock the field.

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

Similar Threads

  1. Replies: 9
    Last Post: 12-09-2014, 09:02 AM
  2. Help! Locking records
    By jlgray0127 in forum Forms
    Replies: 1
    Last Post: 05-02-2014, 06:56 AM
  3. Manually Locking Records for Editing
    By always404 in forum Forms
    Replies: 2
    Last Post: 01-31-2013, 11:17 AM
  4. Locking Field Problems
    By Nick F in forum Programming
    Replies: 17
    Last Post: 10-27-2011, 03:25 PM
  5. Locking Records in Subform
    By MuskokaMad in forum Forms
    Replies: 1
    Last Post: 04-02-2010, 06:34 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