The following VBA code is used to output the results of a query from an access db into Excel:
sQueryName, when run, has some 17,000 lines of records in it and this number will continue to grow but at a slow pace. In the past when the number of records was less (15k or so) this vba code used to work for me without any problem. however, for some time now, my VBA has been failing at this particular point and with the following Run-time error message:
Run-time error '2305': "There are too many rows to output, based on the limitation specified by the output format or by Microsoft Acess."
i know Excel will take up to 65k rows. but is there any such restrictions in Access and is my 17k rows of record the problem.
Is there anything i can do to fix this?
Thanks,
Daniel
Code:
DoCmd.OutputTo acOutputQuery, sQueryName, "MicrosoftExcel(*.xls)", strPath
sQueryName, when run, has some 17,000 lines of records in it and this number will continue to grow but at a slow pace. In the past when the number of records was less (15k or so) this vba code used to work for me without any problem. however, for some time now, my VBA has been failing at this particular point and with the following Run-time error message:
Run-time error '2305': "There are too many rows to output, based on the limitation specified by the output format or by Microsoft Acess."
i know Excel will take up to 65k rows. but is there any such restrictions in Access and is my 17k rows of record the problem.
Is there anything i can do to fix this?
Thanks,
Daniel