Results 1 to 2 of 2
  1. #1
    jmathews607 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    1

    Exporting Query to Multiple Excel Files with No More than 20,000 Rows Each

    Hi -

    I have a query that results in about 110,000 records of names and email addresses to be uploaded into an email marketing service. We can only upload Excel spreadsheets with no more than 20,000 rows at a time. Does anyone know of a way to automate splitting and exporting a query into Excel files with 20,000 rows or less?



    Thanks!

  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
    52,898
    All options I can imagine involve VBA procedure.

    1. need a numeric unique ID field in table (autonumber ?), ideally with no gaps in sequence, apply filter that increments the ID range in a loop, apply filter to a QueryDef or a report

    2. open a recordset of all records and in a loop write 1 record at a time, hit 20,000 and repeat the loop but into a new worksheet
    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. Replies: 10
    Last Post: 01-08-2015, 06:16 AM
  2. Exporting more than 65000 Access rows to Excel
    By TonyBender in forum Import/Export Data
    Replies: 8
    Last Post: 08-22-2013, 04:56 PM
  3. Replies: 10
    Last Post: 12-28-2012, 02:06 PM
  4. Replies: 11
    Last Post: 12-20-2012, 12:30 PM
  5. Replies: 4
    Last Post: 06-14-2011, 07:19 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