A family of Microsoft relational database management systems designed for ease of use.
You need to use much the same code for the form's current event procedure as you are presently using for the control's Click event procedure. But you don't need to assign a Null to the control in this case, so:
If [Required].Value = True Then
Me.Log.Locked = True
Me.Log2.Locked = True
Me.Log3.Locked = True
Me.Log4.Locked = True
Me.Log5.Locked = True
Else
Me.Log.Locked = False
Me.Log2.Locked = False
Me.Log3.Locked = False
Me.Log4.Locked = False
End If
Is Log5 deliberately excluded from the latter set? If so including it in the former will keep it locked once it is locked.
In the case of your current code, though, which you also need, I'd use the control's AfterUpdate event procedure rather than its Click event procedure.
Ken Sheridan, Stafford, England