Results 1 to 3 of 3
  1. #1
    sam.eade is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Sep 2013
    Posts
    29

    Talking Exporting two queries into separate sheets on one spreadsheet

    Hi all,

    At the moment i'm just using a simple DoCmd.OutputTo acOutputQuery to export two queries into separate spreadsheets but I need to merge them into the same document.

    When I hit the button to run the code, it creates both files, so it's not exporting into an already existing sheet.

    Ideally the first command would create the file like normal and the second query would just be input into another sheet on that file.

    Can anyone help with the VBA needed to do this?

    VBA skills beginner/intermediate.



    Thanks

    Sam

  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,929
    Bing: access vba multiple queries one workbook

    http://stackoverflow.com/questions/2...l-workbook-but
    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.

  3. #3
    sam.eade is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Sep 2013
    Posts
    29

    Wink

    Quote Originally Posted by June7 View Post
    Bing: access vba multiple queries one workbook

    http://stackoverflow.com/questions/2...l-workbook-but

    Thankyou! Much appreciated.

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

Similar Threads

  1. Replies: 1
    Last Post: 11-16-2013, 09:01 AM
  2. Replies: 5
    Last Post: 02-07-2013, 09:47 AM
  3. Exporting Queries to Excel Sheets, 1 Student per Workbook
    By StudentTeacher in forum Programming
    Replies: 8
    Last Post: 09-02-2010, 11:48 AM
  4. Out of memory exporting to spreadsheet
    By croydon in forum Programming
    Replies: 3
    Last Post: 07-22-2010, 02:29 PM
  5. Separate queries?
    By sid in forum Queries
    Replies: 0
    Last Post: 08-01-2009, 10:31 AM

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