Results 1 to 3 of 3
  1. #1
    Jim.H. is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    16

    Export to excel on button click

    Export to excel on button click:


    How can I export a query result into excel on a button click?
    Any example would be very helpful.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Check out the TransportSpreadsheet method.

    Review this
    http://forums.aspfree.com/microsoft-...el-413629.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.

  3. #3
    Access_Blaster is offline User
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2010
    Posts
    339
    Quote Originally Posted by Jim.H. View Post
    Export to excel on button click:
    How can I export a query result into excel on a button click?
    Any example would be very helpful.
    Create a new macro; in the "add new action" drop down choose export with formatting.

    Oject type: query
    Oject name: Your query
    Output format: MicrosoftExcel(*.xls)
    Etc...

    That’s pretty much it, unless the output is huge. Then create your button, when the button wizard finishes choose miscellaneous >> run macro >> find your macro, and your done.

    Richard

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

Similar Threads

  1. command button to export to excel
    By jains in forum Forms
    Replies: 5
    Last Post: 06-30-2015, 06:27 PM
  2. Trying to click a button in vba
    By boywonder in forum Programming
    Replies: 8
    Last Post: 05-02-2011, 04:34 AM
  3. Export Excel data to access on a button click
    By Grooz13 in forum Import/Export Data
    Replies: 0
    Last Post: 03-15-2011, 10:02 AM
  4. Replies: 0
    Last Post: 03-13-2011, 03:09 PM
  5. +1 on button click
    By 10 Gauge in forum Forms
    Replies: 4
    Last Post: 02-14-2011, 06:51 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