Err
Active Member
- Joined
- Nov 16, 2006
- Messages
- 274
Hi,
I'm using the following VBA command to save my query results to an Excel file:
When the results are over 65,536 rows then it only saves the top 65,536 and worse -the file seems corrupted when Excel VBA attempts to open it. Excel VBA doesn't have a problem opening this file when the initial Access results are less than 65536 rows.
In both cases, (Excel and Access) the version is 2016 and ought to be able to handle these number of rows.
Thanks.
I'm using the following VBA command to save my query results to an Excel file:
Code:
DoCmd.OutputTo acOutputQuery, "My_Query_Results", "Excel Workbook (*.xlsx)", "C:\Query_Results\My_Query_Results.xlsx", False, "", 1, acExportQualityScreen
When the results are over 65,536 rows then it only saves the top 65,536 and worse -the file seems corrupted when Excel VBA attempts to open it. Excel VBA doesn't have a problem opening this file when the initial Access results are less than 65536 rows.
In both cases, (Excel and Access) the version is 2016 and ought to be able to handle these number of rows.
Thanks.