Here's my punt. I blocked / unblocked with a command button instead of a text box.
1. write a sub to toggle the form, the field, and the controls as blocked or unblocked. Sorry (I used Locked instead of Blocked in my example)
Code:
Private Sub ToggleLock(IsLocked As Boolean)
Me.AllowEdits = Not IsLocked 'dont allow edits if it's locked
Me.IsLocked = IsLocked 'the field in the table that controls if the row is locked
'Change the caption of the command button
If IsLocked Then Me.cmdLock.Caption = "Unlock" Else Me.cmdLock.Caption = "Lock"
'enable/disable all of the controls on the form so the user understands. when a control is not enabled access will grey it out
Me.CONTROL_NAME_1.Enabled = Not IsLocked
Me.CONTROL_NAME_2.Enabled = Not IsLocked
Me.CONTROL_NAME_3.Enabled = Not IsLocked
...
Me.CONTROL_NAME_N.Enabled = Not IsLocked
End Sub
2. Call this sub from the form's Current event to setup the form each time the record changes:
Code:
Private Sub Form_Current()
'If Me.IsLocked Then
' ToggleLock True
'Else
' ToggleLock False
'End If
ToggleLock Me.IsLocked
End Sub
3. Call this sub from the block/unblock command button
Code:
Private Sub cmdLock_Click()
'If Me.IsLocked Then
' ToggleLock False
'Else
' ToggleLock True
'End If
ToggleLock Not Me.IsLocked
End Sub