Question : How to Export Access Query with 100k+ records to Excel in separate tabs?

I have 3 queries in MS Access 2002 based on one table

I need to export each individual query to an Excel sheet and hopefully automatically parse the records out into 60k records per tab.

Can some one give me step by step instructions on how to do so?

thanks!

Answer : How to Export Access Query with 100k+ records to Excel in separate tabs?

export each query to a different sheet

docmd.transferspreadsheet acexport, acSpreadsheetTypeExcel9,"QueryName1","C:\myExcel.xls",true,"Sheet1"

docmd.transferspreadsheet acexport, acSpreadsheetTypeExcel9,"QueryName2","C:\myExcel.xls",true,"Sheet2"

docmd.transferspreadsheet acexport, acSpreadsheetTypeExcel9,"QueryName3","C:\myExcel.xls",true,"Sheet3"
Random Solutions  
 
programming4us programming4us