Results 1 to 2 of 2
  1. #1
    opod is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    1

    Export Filtered Results to Excel Tabs

    Hello,



    I would like to export a query to Excel. We have one column in the query that we use for grouping results (i.e. regions such as "North", "South", etc.).

    What I would like to do is for every region (i.e. "North", "South") take the results and export them to a separate tab within an Excel workbook. So, in the end, I would find a "North" tab with all results related to the north region and likewise for the "South" region.

    I know some VBA, but I just don't know the code for completing such a task.

    Thanks!

  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,816
    More than one way to approach this. Here is one, in outline.

    Put VBA code in Excel. I assume 4 regions so do for each region:

    1. Open recordset filtered to region
    2. Save data to designated tab
    3. Close recordset
    4. Same for each of the other regions

    Might be able to use this techniqe to save recordset to worksheet http://support.microsoft.com/kb/246335 I have not used it.

    This recent thread also discusses import data to Excel https://www.accessforums.net/queries...ery-15791.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. Export table to excel using excel template
    By allenjasonbrown@gmail.com in forum Programming
    Replies: 1
    Last Post: 06-27-2011, 02:10 AM
  2. Replies: 2
    Last Post: 01-15-2011, 10:56 AM
  3. Replies: 1
    Last Post: 10-24-2010, 04:01 PM
  4. export report to multiple tabs
    By mws5872 in forum Import/Export Data
    Replies: 0
    Last Post: 06-30-2009, 03:07 PM
  5. Export Access reports/query results to Outlook Calendar/Task
    By kfinpgh in forum Import/Export Data
    Replies: 0
    Last Post: 02-22-2007, 01:09 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