Results 1 to 6 of 6
  1. #1
    spgprivate is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jan 2015
    Posts
    3

    Export to Excel, 1 recrd at a time

    Hi

    Ive created a Db and a form and report. Let says theres 100 records in the db.

    I wish to be able to press a button and have Access create an excel file in the format of the form/report Ive created. Access will do this 100 time therefor creating 100 excel files each with their own copy of their records. The file names should be called "customerxyz" which is one of the key data fields.



    Any ideas ?

  2. #2
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    I'm not sure how well an Access report would export to Excel - the formatting would be a real issue.

    Why do you want to export to Excel - wouldn't a pdf file work just as well?

  3. #3
    spgprivate is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jan 2015
    Posts
    3
    Hi
    My account department are sticklers for getting their docs in excel
    However, if this was possible in PDF, I would give it a try ?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Report open in Print Preview, right click > Export > PDF.

    Or in VBA, DoCmd.OutputTo https://www.accessforums.net/import-...ges-25042.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.

  5. #5
    spgprivate is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jan 2015
    Posts
    3
    Will this create a single PDF file per record automatically ? as I dont want to be having to manually print each record/export to PDF ?

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    It will PDF the report as displayed in Print Preview. If it is filtered to a single record then that is what the PDF will reflect. If it has all records, then that's what the PDF will show. Did you review the link?
    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. Export Queries to Excel with Combo-Box visible in Excel
    By johnmarc2 in forum Import/Export Data
    Replies: 1
    Last Post: 07-07-2014, 05:33 PM
  2. Replies: 7
    Last Post: 04-25-2013, 03:47 PM
  3. Export Report to Excel without Date() and Time()
    By agent- in forum Import/Export Data
    Replies: 5
    Last Post: 12-21-2011, 08:55 AM
  4. Replies: 3
    Last Post: 10-07-2011, 07:49 AM
  5. Export table to excel using excel template
    By allenjasonbrown@gmail.com in forum Programming
    Replies: 1
    Last Post: 06-27-2011, 02:10 AM

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