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 You can call a command button on another form via the button's Value property. This will invoke Command1_Click on Form1 |