O
Owl
I have read all I can find but still can't get this right. I have a combo
box with a selection of either Yes or No in a field called P5Pd and I want to
lock records if it Yes is selected.
I have the following code, but it is locking ALL records and not just if
P5Pd = "Yes"
Sub Form_Current()
If Me.P5Pd = "Yes" Then
Me.AllowEdits = False
End If
End Sub
box with a selection of either Yes or No in a field called P5Pd and I want to
lock records if it Yes is selected.
I have the following code, but it is locking ALL records and not just if
P5Pd = "Yes"
Sub Form_Current()
If Me.P5Pd = "Yes" Then
Me.AllowEdits = False
End If
End Sub