J
Joan
Can anyone tell me of a simple way to print a batch of Invoice Statements
(reports) where the page number will start over at 1 when a different
customer's invoice statement is printed? Currently, I have a textbox in the
page footer section of the report with the control source set to: ="Page "
& [Page] & " of " & [Pages]
This works fine, if I am printing out only one customer's invoice statement,
but when I print out a batch of invoice statements to various customers then
the page numbering is continuous for all of the invoice statements. The page
enumeration does not start over at 1 for each new customer and the [Pages]
number is the sum of all the pages for all of the customers' invoice
statements printed. Instead, I'd like [Pages] to be a number that is the
total number of pages for each customer.
There is nothing in the report header and report footer and there are no
group headers or group footers on the report. In the page header there are
controls for the Invoice Number and the Customer among others. The detail
section of the report contains 3 subreports. The line of code that opens the
report is:
DoCmd.OpenReport Report, ReportDest, , mysql
mysql is a string that is concatenated with a For/Next loop:
With ctlList
If .ListCount > 0 Then
For intIndex = 0 To InvCurrentItems
If mysql = "" Then
mysql = "("
Else
mysql = mysql & " or "
End If
mysql = mysql & "[Invoice Number] = " &
Forms![frmPrintReportsDialog]![Current Invoices].Column(0, intIndex)
Next intIndex
mysql = mysql & ")"
End If
End With
Any help with this is greatly appreciated!
Joan
(reports) where the page number will start over at 1 when a different
customer's invoice statement is printed? Currently, I have a textbox in the
page footer section of the report with the control source set to: ="Page "
& [Page] & " of " & [Pages]
This works fine, if I am printing out only one customer's invoice statement,
but when I print out a batch of invoice statements to various customers then
the page numbering is continuous for all of the invoice statements. The page
enumeration does not start over at 1 for each new customer and the [Pages]
number is the sum of all the pages for all of the customers' invoice
statements printed. Instead, I'd like [Pages] to be a number that is the
total number of pages for each customer.
There is nothing in the report header and report footer and there are no
group headers or group footers on the report. In the page header there are
controls for the Invoice Number and the Customer among others. The detail
section of the report contains 3 subreports. The line of code that opens the
report is:
DoCmd.OpenReport Report, ReportDest, , mysql
mysql is a string that is concatenated with a For/Next loop:
With ctlList
If .ListCount > 0 Then
For intIndex = 0 To InvCurrentItems
If mysql = "" Then
mysql = "("
Else
mysql = mysql & " or "
End If
mysql = mysql & "[Invoice Number] = " &
Forms![frmPrintReportsDialog]![Current Invoices].Column(0, intIndex)
Next intIndex
mysql = mysql & ")"
End If
End With
Any help with this is greatly appreciated!
Joan