StayAtHomeMom
Technical User
I am using VBA to run queries, output them to Excel, and run a subroutine to format the results in Excel. I'm having a problem with one of them that I do not know how to fix. I am getting a run time error (#2306) that states:
"There are too many rows to output, based on the limitation specified by the output format or by Microsoft Access"
It's true that the results of this query include about 8000 records. What can I change to handle that, if anything? I am including the code to show the syntax of my calls to output the query results to Excel and the open command.
Thanks in advance for any clues!
DoCmd.OutputTo acQuery, "MyR352Query", acFormatXLS, "C:\ClientName\RPT352-", False, "", 0
Workbooks.Open "C:\ClientName\RPT352-"
GoSub RepExcelFormat_R352
"There are too many rows to output, based on the limitation specified by the output format or by Microsoft Access"
It's true that the results of this query include about 8000 records. What can I change to handle that, if anything? I am including the code to show the syntax of my calls to output the query results to Excel and the open command.
Thanks in advance for any clues!
DoCmd.OutputTo acQuery, "MyR352Query", acFormatXLS, "C:\ClientName\RPT352-", False, "", 0
Workbooks.Open "C:\ClientName\RPT352-"
GoSub RepExcelFormat_R352