Hi trying to lock records on a form and subform after a checkbox has been ticked, have used the code below from a previous post.
Private Sub Form_Current()
If Locked = -1 Then
Me.AllowEdits = False
Me.AllowAdditions = False
Me.AllowDeletions = False
Else
Me.AllowEdits = True
Me.AllowAdditions = True
Me.AllowDeletions = True
End If
End Sub
this is locking the Main form records is there a way to code this so that the fields on the subform are also locked when the checkbox is ticked,,,,? any help greatly appreciated,,,thanks Fi
Private Sub Form_Current()
If Locked = -1 Then
Me.AllowEdits = False
Me.AllowAdditions = False
Me.AllowDeletions = False
Else
Me.AllowEdits = True
Me.AllowAdditions = True
Me.AllowDeletions = True
End If
End Sub
this is locking the Main form records is there a way to code this so that the fields on the subform are also locked when the checkbox is ticked,,,,? any help greatly appreciated,,,thanks Fi