Results 1 to 3 of 3
  1. #1
    ManuelLavesa is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Sep 2015
    Posts
    113

    Export Single record from a form to PDF

    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

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    51,350
    Options:

    1. filter the form to the single record before export

    2. open a filtered report and export report

    3. open filtered query and export query
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    ManuelLavesa is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Sep 2015
    Posts
    113
    I did option 1 and it worked thank you

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 08-02-2015, 12:42 AM
  2. Replies: 1
    Last Post: 04-11-2015, 10:31 AM
  3. Replies: 13
    Last Post: 11-07-2012, 03:14 PM
  4. Replies: 4
    Last Post: 11-07-2011, 07:25 PM
  5. Export single record from a form to PDF
    By GraemeG in forum Programming
    Replies: 1
    Last Post: 04-10-2011, 01:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums