Private Sub Command1_Click()
Dim acc As Application
Dim kk
Set acc = CreateObject("Access.Application")
acc.OpenCurrentDatabase ("G:\aaa.mdb")
acc.DoCmd.OpenForm "课程"
Set kk = acc.CurrentProject.AllForms("课程")
' Set fd = kk.AllForms("课程")
For Each ob In kk.Properties
Debug.Print ob.Name,ob.type
Next