|
Public Function TextLocked()
On Error Resume Next
Dim Frm As Form
Dim Ctl As Control
DoCmd.OpenForm "Vorschlag Teilesteuerung_1", acNormal, "", "", , acNormal
Set Frm = Current_Form
For Each Ctl In Frm.Controls
With Ctl
Select Case .ControlType
Case acCheckBox
.Enabled = False
Case acComboBox
.Enabled = False
Case acCommandButton
.Enabled = False
Case acListBox
.Enabled = False
Case acOptionButton
.Enabled = False
Case acTextBox
.Enabled = False
End Select
End With
Next Ctl
End Function
麻烦大家再帮我看看吧,我又修改了一下,可是还是不行,窗体里的都可以编辑,就是说enable = false没有设置成功。。。不知道问题出在哪里啊。。 |
|