VB中打印ACCESS报表
发表于:2007-06-30来源:作者:点击数:
标签:
Dim acc As Object
Set acc = CreateObject("Access.Application")
If Right$(Trim$(App.Path), 1) = "\" Then
acc.OpenCurrentDatabase App.Path & "data.mdb"
@#打开
数据库
Else
acc.OpenCurrentDatabase App.Path & "\data.mdb"
End If
acc.docmd.OpenReport "打印准考证" @#, acPreview
打印报表“打印准考证”
acc.Quit
Set acc = Nothing
使用A
CCESS报表主要缺点就是不能预览
原文转自:http://www.ltesting.net