Link to home
Start Free TrialLog in
Avatar of andrewpiconnect
andrewpiconnectFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Export Access 2007 Query to Excel 2007+

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
ASKER CERTIFIED SOLUTION
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of andrewpiconnect

ASKER

works a treat....many thanks