A family of Microsoft relational database management systems designed for ease of use.
I can't be absolutely certain this will work in Access 2010 as I'm using 2007, but you'll find a file InvoicePDF.zip in my public databases folder at:
https://skydrive.live.com/?cid=44CC60D7FEA42912&id=44CC60D7FEA42912!169
If you have difficulty opening the link copy its text (NB, not the link location) and paste it into your browser's address bar.
If you amend the code in the Click event procedure of the button to Create Invoice as PDF as follows:
strFullPath = varFolder & "" & Me.Customer.Column(1) & Me.InvoiceNumber & ".rtf"
' ensure current record is saved before creating PDF file
Me.Dirty = False
DoCmd.OutputTo acOutputReport, "rptInvoice", acFormatRTF, strFullPath, True
this will create a RTF file from the report rather than a PDF file.