|
Form1!Command1.Value = -1 ' Or True
' To disable or enable all the controls on a form, use the Controls collection. ' Example: Dim i 'Loop through all form controls For i = 0 To Form1.Controls.Count - 1 'Disable each control Form1.Controls(i).Enabled = False Next |