Hi Dale,
many thanks for the reply.
Iam using 2007 and have already set up the convert to pdf addin and also set
up the following code in a form that loops through each invoice to create an
individual pdf where the file name is the invoice number:
Private Sub Form_Load()
Dim FileName As String
FileName = [Forms]![Invoice Limiter form]![MinOfInvoice] & ".pdf"
DoCmd.OutputTo acOutputReport, "V2MasterBillReport", acFormatPDF,
"W:\TITAN\Billing\WorldwideInvoices\" & FileName, False
DoCmd.SetWarnings False
End Sub
The above is triggered within a forms onload property and the data for the
form is based on the following
SELECT Min(InvoiceSummaryTable.Invoice) AS MinOfInvoice,
InvoiceSummaryTable.[Low Biller]
FROM InvoiceSummaryTable
GROUP BY InvoiceSummaryTable.[Low Biller], InvoiceSummaryTable.Printed
HAVING (((InvoiceSummaryTable.Printed) Is Null));
After each pdf is generated then the form is closed and the Invoice summary
table is updated to true. The form then reopens and the loop continues.
I have therefore created indivual pdfsfor each customer accountnumber and i
know the invoice number email address and the pathe of where the individual
pdfs are stored.
Iam looking now for a facility to loop through each customer and attach the
indivdual pdfs and email them to the correct email address.
Kind regards
Colin