Office中国论坛/Access中国论坛
标题:
如何外部数据库的报表???
[打印本页]
作者:
xingzhihao
时间:
2007-11-29 20:27
标题:
如何外部数据库的报表???
如题:如何打开外部数据库的报表?
作者:
andymark
时间:
2007-11-29 21:49
Dim DbPath As String
Dim oApp As Access.Application
DbPath = "c:\db1.mdb"
Set oApp = New Access.Application
With oApp
.Visible = True
.OpenCurrentDatabase DbPath
.DoCmd.OpenForm "MyForm" ' 打开窗体
.DoCmd.OpenReport "MyReport", acViewPreview '打开报表
.Run "MyFuncion" '执行宏
End With
Set oApp = Nothing
复制代码
作者:
tmtony
时间:
2007-11-30 10:45
好方法,同时要注意有时要弹出式,否则报表显示不出来
作者:
xingzhihao
时间:
2007-12-4 10:52
感谢二位老大!!!!!!!!!!!!!!
欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/)
Powered by Discuz! X3.3