Results 1 to 3 of 3
  1. #1
    akika is offline Novice
    Windows 10 Access 2016
    Join Date
    Aug 2018
    Posts
    27

    read-only field in access after input or if contains value

    Hi,



    I have a field Completion in a access form.
    How can i do that when Completion field contains value or even after input then it should be read-only.

    and in which property to add the condition.

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,543
    Perhaps something like:

    Code:
        Me.YourField.Locked = IsNull(Me.YourField)
    Put code in the Forms On Current event and the controls After Update event
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,543
    Sorry. Code should be:

    Code:
    Me.YourField.Locked =​Not IsNull(Me.YourField)
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. Replies: 6
    Last Post: 09-29-2017, 04:58 PM
  2. Read Design & Read Data Issue
    By f15e in forum Access
    Replies: 7
    Last Post: 10-18-2016, 12:44 AM
  3. Read only field on Split form
    By casinc815 in forum Forms
    Replies: 1
    Last Post: 04-26-2014, 02:51 PM
  4. Read and update a field in another table.
    By Artist.Anon in forum Programming
    Replies: 2
    Last Post: 08-28-2012, 06:56 AM
  5. Replies: 2
    Last Post: 10-19-2006, 04:37 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