Results 1 to 4 of 4
  1. #1
    ortizimo is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jun 2017
    Location
    FL
    Posts
    88

    Exporting a Query into Excel

    I'm trying to export a query into excel...this is what I'm using but its not working...any help is appreciated.



    Private Sub Command573_Click()
    DoCmd.OutputTo acOutputQuery, acFormatXLSX, "C:\retrogamesDB\Exports\Backup.xlsx", True, ""
    End Sub

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You're missing the name of the query. Check the arguments of OutputTo.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    ortizimo is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jun 2017
    Location
    FL
    Posts
    88
    Quote Originally Posted by pbaldy View Post
    You're missing the name of the query. Check the arguments of OutputTo.
    where does it go?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Exporting a query to Excel
    By crowegreg in forum Import/Export Data
    Replies: 1
    Last Post: 08-28-2013, 04:13 PM
  2. Exporting query to Excel. Almost there
    By Wombat in forum Import/Export Data
    Replies: 13
    Last Post: 04-10-2012, 01:38 PM
  3. Exporting a Query to Excel
    By tcheck in forum Access
    Replies: 3
    Last Post: 07-22-2011, 05:00 PM
  4. Query Exporting to Excel
    By Coffee in forum Queries
    Replies: 2
    Last Post: 07-18-2011, 07:42 AM
  5. Exporting Query to Excel
    By jvera524 in forum Import/Export Data
    Replies: 0
    Last Post: 12-06-2010, 09:16 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