关闭子窗体可用:
While Not Me.ActiveForm Is Nothing
   Me.ActiveForm.Hide
Wend