J
James
Searched group & found no previous post using this simple method.
Trying to resolve a code problem, I'm trying to lock all controls on a form
On Load, and unlock all for an edit, with a check box.
My below first step is giving errors in AC2003.
Private Sub Form_Load()
'Lock All Controls
Dim ctl As Control
For Each ctl In Me.Controls
ctl.Enabled = True <---- Object doesn't support this property or
method.
ctl.Locked = True <---- Object doesn't support this property or
method.
Next
End Sub
I'll also use this method(with False) to lock controls after edit.
Any suggestions appreciated.
Trying to resolve a code problem, I'm trying to lock all controls on a form
On Load, and unlock all for an edit, with a check box.
My below first step is giving errors in AC2003.
Private Sub Form_Load()
'Lock All Controls
Dim ctl As Control
For Each ctl In Me.Controls
ctl.Enabled = True <---- Object doesn't support this property or
method.
ctl.Locked = True <---- Object doesn't support this property or
method.
Next
End Sub
I'll also use this method(with False) to lock controls after edit.
Any suggestions appreciated.