I want to lock a control in the subform but i cannot do it.Even though the control brancho is Null, the control cartons is not locked.Can you help me ?
Private Sub Form_BeforeUpdate(Cancel As Integer)
If IsNull(Me!branch0) Then
Me!cartons.Locked = True
End If
End Sub