如何能用VBA创建一个Report对象呢?
Sub testreport()
Dim rp As Access.Report
Set rp = CreateReport
With rp
.Caption = "test report"
End With
End Sub
Dim rp As Access.Report
Set rp = CreateReport
With rp
.Caption = "test report"
End With
End Sub
其中的CreateReport函数就是Access集成的建Report的函数。
Enjoy!