The Unload statement expects an Object (a Form or a Control), not a String. Try this instead:
Code:Private Sub mnuCloseAllMDIChildForms_Click() Do Until Me.ActiveForm Is Nothing Unload Me.ActiveForm Loop End Sub
|
Results 1 to 7 of 7
Thread: How many test form is open?Hybrid View
|
Click Here to Expand Forum to Full Width |