1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Output multiple queries from Access to Excel???

Discussion in 'Business Applications' started by Shlaga, Nov 10, 2007.

Thread Status:
Not open for further replies.
  1. Shlaga

    Shlaga Thread Starter

    Joined:
    Oct 23, 2007
    Messages:
    41
    Hi guys,

    I want to ouput the results of multiple queries to different sheets in the same excel file. The docmd.transferspreadsheet method works great except that if a user makes any changes to the file and saves it, the changes save, and the next time the user triggers the event for the ouput query the command doesn't overwrite the previous changes and the file contains the previous changes made as well. While the docmd.outputto command doesn't allow the user to makes changes and even if the user does the next time you run the command it overwrites the changes the user made....i want something like that with the added benefit of being able to output multiple queries to an excel sheet...
    This is what i have as of now:

    DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel97, _
    "Order Subtotals", "C:\Sales.xls"
    DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel97, _
    "qrySalesByCountry", "C:\Sales.xls"
    Call OpenSpecific_xlFile("C:\Sales")

    Does anyone have any suggestions or ideas??:confused: ..it would be much appreciated!!

    Thanks in advance..
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/650139

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice