I would like to disable each control in a form when the form is opened - can anyone tell me why this code does not work?
Private Sub Form_Open(Cancel As Integer)
Dim ctl As Control
Dim frm As Form
Set frm = Forms!form_name
For Each ctl In frm.Controls
ctl.Enabled = False
Next ctl
End Sub
Any help appreciated!
Klopper
Private Sub Form_Open(Cancel As Integer)
Dim ctl As Control
Dim frm As Form
Set frm = Forms!form_name
For Each ctl In frm.Controls
ctl.Enabled = False
Next ctl
End Sub
Any help appreciated!
Klopper