0

我对 Access 很陌生,在这里需要一些帮助。我正在使用 SQL 2008 Server 作为我的数据库来开发 MS Access 2007(在 VB 中)。

我正在打印已保存在 Button Click 事件中的报告。一切正常,可以打印报告,但在打印报告后,它也在打印包含该按钮的表单。这是我在 Button_click 上编写的代码:

DoCmd.OpenReport "ReportName"
DoCmd.PrintOut

有什么建议么 ??

4

1 回答 1

1

DoCmd.OpenReport 方法

expression.OpenReport(ReportName, View, FilterName, WhereCondition, WindowMode, OpenArgs)

DoCmd.OpenReport, "report", acViewNormal

您不需要 PrintOut。

于 2012-09-28T14:40:14.043 回答