Good day everyone.
It's me again and hopefully you can assist me once again.
I would like to lock all the controls in the form by using a checkbox without encoding each of the control name.
Is this possible?
I have also tried the code below but it doesn't lock it and it is only for Textbox.
Private Sub Form_Current()
Dim ctrl As Control
For Each ctrl In Me.Controls
If TypeOf ctrl Is TextBox Then
ctrl.Locked = True
End If
Next
End Sub