VBa access: check end of excel file when submitting reports
2 answers
You have at least two options.
The first is simply counting the lines as they are printed (if writing does not occur immediately, save an additional file with the line count in the main file). When the number of lines approaches the limit (i.e. 65k), start a new sheet.
Depending on how flexible your file's structures are, an alternative is to write all the rows to an access table and then query the Excel sheet into an access table. This will result in a row limit in Excel 2002
+2
source to share