加判断,大致如下:
If Forms("窗口1").Opened Then Forms("录入窗口1").Open()
End If
If Forms("窗口2").Opened Then Forms("录入窗口2").Open()