Results 1 to 3 of 3
  1. #1
    databasewolfy is offline Novice
    Windows 10 Access 2016
    Join Date
    Aug 2019
    Posts
    10

    export multiple page form with specific field as respective filename

    Is there an easy way to export a form with roughly 50,000 entries into PDF files with a specific field as the file name?

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,409
    think you need to clarify - you want to generate 50000 pdf's?

    the export part is easy, use the docmd.outputto method - https://docs.microsoft.com/en-us/off...docmd.outputto

    As to the rest of it, all depends on what you are actually trying to do

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,522
    thats called a Report.
    the query pulls the data into the report,
    use a form and listbox to filter by 'dept' (or other list) then the output would be like:

    vFile = "c:\folder\MyReport_" & cboDept & "_" & format(Date,"yymmdd-hhnn") & ".pdf"
    DoCmd.OutputTo acOutputReport, "rMyReport", acFormatPDF, vFile

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

Similar Threads

  1. Replies: 2
    Last Post: 07-02-2015, 10:39 PM
  2. Export table to txt file with a variable filename
    By macollins7 in forum Import/Export Data
    Replies: 6
    Last Post: 07-12-2012, 09:44 AM
  3. Variuse FileName When Export
    By shay in forum Import/Export Data
    Replies: 1
    Last Post: 12-01-2010, 11:36 AM
  4. Prompt for filename for import/export??
    By stephenaa5 in forum Import/Export Data
    Replies: 23
    Last Post: 10-23-2009, 03:43 PM
  5. Replies: 0
    Last Post: 06-11-2009, 01:54 PM

Tags for this Thread

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