能做到吗?作者: andymark 时间: 2006-7-11 00:36
Dim ctl As Control
For Each ctl In Me.Controls
If ctl.ControlType = acSubform Then
MsgBox "本窗本含有子窗体"
End If
Next作者: Trynew 时间: 2006-7-11 17:36
引用一下Me.Parent,如果不出错,则是子窗体.
Function IsSubform(ByVal Frm As Form) As Integer
On Error Resume Next
IsSubform = (Len(Frm.Parent.Name) > 0)
End Function 作者: zx994398 时间: 2006-7-25 23:41
有一段时间没上了,谢谢各位的帮助!好好研究研究!