Results 1 to 3 of 3
  1. #1
    cslr is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2011
    Posts
    19

    help needed to export a quarie to excel

    Hello i am trying to export a querie to an excel file using a vba or a macro .
    i have done some stuff with macro but nothing with vba.


    i now how to export a table and a report but can not seem to be able to gat a querie to export .
    thank for any help any one can give me

  2. #2
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    You can use DoCmd.TransferSpreadsheet, or you could copy the function from my website:
    http://www.btabdevelopment.com/ts/de...aspx?PageId=48
    into a standard module so you can just call it and pass the query name to it. Make sure the standard module (not form, report or class module) is not named the same as the function.

  3. #3
    cslr is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2011
    Posts
    19
    thank you so muck for your help . i will try that right now .

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

Similar Threads

  1. Replies: 3
    Last Post: 10-07-2011, 07:49 AM
  2. Excel Export Tab Name
    By jgelpi16 in forum Programming
    Replies: 3
    Last Post: 06-28-2011, 08:36 AM
  3. Export table to excel using excel template
    By allenjasonbrown@gmail.com in forum Programming
    Replies: 1
    Last Post: 06-27-2011, 02:10 AM
  4. Trying to export to Excel
    By BigCat in forum Programming
    Replies: 19
    Last Post: 05-19-2011, 01:49 AM
  5. Export to Excel
    By vaikz in forum Import/Export Data
    Replies: 3
    Last Post: 03-25-2009, 09:37 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