]I think the problem lies with
Code:
If Nz(Form.Containertype) = 0
because it seems to me that the condition is always failing and so executing the else part.
A way to check it out would be to swap the conditions thus.
Code:
If Nz(Form.Containertype) = 0 Then
Form.Containertype.Locked = True
Else
Form.Containertype.Locked = False
End If
or maybe simply:
With NZ
End