Hello,
I am trying to export a form to pdf. On the form I placed a button with the following code on the click event:
DoCmd.OutputTo acOutputReport, "InvoiceReport", acFormatPDF, "C:\Users\User\Documents\CustomerInvoices\" & Me.InvoiceNumber & ".pdf", True
This makes a PDF document that contains all the Invoices that I have in the database including the last one. All I want is to somehow filter this so that I only get the current Invoice (record). Thank you for your help