G
Guest
I have a situation where I am entering data for a purchase order via a Form.
On the form I have a command button that will allow me to print a Report that
contains the data that was entered via the Form. I need to be able to print
two reports - one copy for Accounting and a Customer copy. I have a separate
Report for each copy of the purchase order that I need. I can get the two
versions of the report to print ok, but only the first copy contains data.
The other is blank. The code behind the command button is :
Dim stDocName As String
DoCmd.RunCommand acCmdSaveRecord
stDocName = "Hardcopy PO - Accounting Copy"
DoCmd.OpenReport stDocName, acNormal
stDocName = "Hardcopy PO - Customer Copy"
DoCmd.OpenReport stDocName, acNormal
Is there some code I can add to this to cause data to be included in the
output of both Reports?
On the form I have a command button that will allow me to print a Report that
contains the data that was entered via the Form. I need to be able to print
two reports - one copy for Accounting and a Customer copy. I have a separate
Report for each copy of the purchase order that I need. I can get the two
versions of the report to print ok, but only the first copy contains data.
The other is blank. The code behind the command button is :
Dim stDocName As String
DoCmd.RunCommand acCmdSaveRecord
stDocName = "Hardcopy PO - Accounting Copy"
DoCmd.OpenReport stDocName, acNormal
stDocName = "Hardcopy PO - Customer Copy"
DoCmd.OpenReport stDocName, acNormal
Is there some code I can add to this to cause data to be included in the
output of both Reports?