Private Sub Form_Open(Cancel As Integer) Dim MyFrm For Each MyFrm In CurrentProject.AllForms If MyFrm.IsLoaded = True And MyFrm.Name <> Me.Name Then DoCmd.Close acForm, MyFrm.Name End If Next End Sub 作者: tz-chf 时间: 2006-5-13 00:21
只这段代码又看不出问题
那你不要重定义好啦作者: ssh8688 时间: 2006-5-13 00:27
如何重定义?我说的是“Private Sub Form_Open(Cancel As Integer) ”这个重定义错误作者: 一点通 时间: 2006-5-13 00:56
Private Sub Form_Open(Cancel As Integer) Dim MyFrm For Each MyFrm In CurrentProject.AllForms If MyFrm.IsLoaded = True And MyFrm.Name <> Me.Name Then DoCmd.Close acForm, MyFrm.Name End If Next End Sub