For Each CSL In Me.Controls
If CSL.Name <> "庫存類別篩選" Then
If CSL.ControlType = acTextBox Or CSL.ControlType = acComboBox Then
CSL.Locked = True
CSL.BackColor = 12632256
End If
End If
Next
End Sub
'修改新模式按鈕狀態
Sub Edit_mod()
Dim CSL As Control
For Each CSL In Me.Controls
If CSL.Name <> "庫存類別篩選" Then
If CSL.ControlType = acTextBox Or CSL.ControlType = acComboBox Then
CSL.Locked = False
CSL.BackColor = -2147483643
'Me.編號.SetFocus
End If
End If
Next