Private Sub ViewEngineer_Click()
Dim ctl As Control
DoCmd.OpenForm "ServiceStaff", acNormal, "", "[Engineers]![Name_EN]=[Forms]![Callout]![Allocated_to]"
For Each ctl In Forms![ServiceStaff].Controls
If ctl.ControlType = 111 Or ctl.ControlType = 112 Or ctl.ControlType = 109 Then
ctl.Locked = True
End If
Next ctl
End Sub
For Each ctl In Forms![ServiceStaff].Controls
If ctl.ControlType = 111 Or ctl.ControlType = 112 Or ctl.ControlType = 109 Then
ctl.Locked = True
End If
Next ctl