Results 1 to 2 of 2
  1. #1
    Liam87 is offline Novice
    Windows Vista Access 2007
    Join Date
    Oct 2012
    Posts
    10

    Export query to excel

    Would anyone know how to export a query to excel? I have tried using a macro, however you have to define the file name in the macro, and I don't particularly want users going through macro settings. I was thinking if there was someway to date stamp the end of my file so that it becomes unique? Data will be updated monthly mostly, so each month a new query would be exported.



    If anyone has any ideas, would be good. Otherwise I can just keep saving over the one file and having the users 'save as' to the appropriate location. There will only be a handful of users so I guess that won't be too much of an issue

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I don't use macros, only VBA. Show your macro code for analysis.

    Can't you concatenate Date() to the filename specified in the macro?
    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 Query into Excel
    By system243trd in forum Programming
    Replies: 1
    Last Post: 11-24-2012, 08:51 AM
  2. Export Query to Excel
    By Leon_SF in forum Import/Export Data
    Replies: 7
    Last Post: 03-21-2012, 09:07 PM
  3. Replies: 3
    Last Post: 10-07-2011, 07:49 AM
  4. Export query to Excel
    By dev82 in forum Queries
    Replies: 15
    Last Post: 02-10-2011, 11:15 AM
  5. Export Query to Various Excel Files
    By dalet in forum Import/Export Data
    Replies: 7
    Last Post: 11-09-2009, 09:22 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