Results 1 to 2 of 2
  1. #1
    AdrianoG87 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Sep 2011
    Posts
    8

    Exporting PDF document with dynamic name and changing save destination

    Hi all,

    I have a form with a button I click to generate an invoice using a report I created. I export as a PDF and have to rename the file every time I create one. I've also got to save each invoice to a different folder as each of my customers has a separate folder dedicated to their invoices.

    I am currently cool with generating each invoice individually as it allows for a final once over look of the data in the form before the document is generated.



    Each invoice file name needs to consist of a Customer name, an Invoice Number a Year and Week number. Each invoice also needs to be saved to the customer's own folder.

    For this, I currently have 2 tables, an invoice register which contains the name/invoicenumber/week/year and another table that has the customer's invoice folder location.

    Using these 2 tables, I currently have a query that is able to generate the desired name for the file as well as display the the intended save destination. using this information, i need to be able to hit a button on my form that will export the report with the corresponding generated file name and save it to the intended destination.

    i don't know any of that coding stuff and most of the googled results i have seen have been SQL or VB etc. if someone can provide me with that coding and an indication of what i need to substitute and where. that would be great.

    thanks in advance

    Adriano

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    We can refer you to examples but you are going to have to learn VBA to customize for your needs. Here are two:
    https://www.accessforums.net/import-...ges-25042.html
    https://www.accessforums.net/access/...pdf-25574.html
    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.

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

Similar Threads

  1. origin-destination matrix calculations
    By baggieboy in forum Queries
    Replies: 7
    Last Post: 02-09-2012, 03:58 PM
  2. save document
    By scamper in forum Reports
    Replies: 1
    Last Post: 01-03-2012, 11:33 AM
  3. Exporting Memo field Data to Word document
    By samlennox in forum Programming
    Replies: 2
    Last Post: 04-25-2011, 11:57 PM
  4. Replies: 4
    Last Post: 12-16-2010, 12:45 PM
  5. hyperlink data not transferring to destination table
    By markjkubicki in forum Programming
    Replies: 3
    Last Post: 09-17-2010, 06:12 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