标题: 请教几个问题!(想到就来问问!) [打印本页] 作者: cake_super 时间: 2004-4-3 04:40 标题: 请教几个问题!(想到就来问问!) 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
问题多了点,蠢了点,见谅!!!!!作者: coning 时间: 2004-4-3 06:16
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