Solved

Export Access 2007 Query to Excel 2007+

Posted on 2013-01-11
2
982 Views
Last Modified: 2013-01-11
Hi,

I am trying to export the results of a query to excel so that i can use the excel sheet on my tablet pc.

However, when the excel sheet is saved to my pc it is in "2003-2007" format and this is not compatible with my tabet pc.

I need to change my code (below) so that the excel file is in a later format than 2003-2007.

Can anyone help please?

DoCmd.OutputTo acOutputQuery, "MSSL Customer Details", "Excel97-Excel2003Workbook(*.xls)", "", True, "", 0, acExportQualityPrint

I have also tried the following code but this is no good either:

DoCmd.OutputTo acQuery, "MSSL Customer Details", "MicrosoftExcel(*.xlsx)", "", False, ""

Many thanks
0
Comment
Question by:andrewpiconnect
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 38767426
try using



DoCmd.OutputTo acOutputQuery, "MSSL Customer Details", "Excel Workbook(*.xlsx)", "", True, "", 0, acExportQualityPrint
0
 

Author Closing Comment

by:andrewpiconnect
ID: 38767642
works a treat....many thanks
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question