作者: 好学 时间: 2006-9-21 16:41
Private Sub Command4_Click()
Dim stDocName As String
Dim Name As String
stDocName = "资料录入"
Name = Me![打印份数]
DoCmd.PrintOut acPages, 1, , , Name
End Sub
Private Sub Command4_Click()
Dim stDocName As String
Dim Name As String
stDocName = "资料录入"
Name = Me![打印份数]
DoCmd.OpenReport stDocName, acViewPreview, , , acHidden '隐藏报表
DoCmd.PrintOut acPages, 1, , , Name
End Sub 作者: 好学 时间: 2006-9-22 01:20 fan0217斑竹,麻烦您看看!谢谢!作者: 好学 时间: 2006-9-24 21:59
我后来换了个方法,用循环语句,问题解决了,谢谢大家!