View Single Post
  #1 (permalink)  
Old August 16th, 2013, 10:26 AM
egan0815 egan0815 is offline
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Aug 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Export to MS Excel


I bought this book 1 week ago. It's fascinating, it's great, it's amazing ... Just "WOW". Really!

While reading the book, the following question came up:

Why didn't you write anything 'bout DoCmd.TransferSpreadsheet? It's much faster than the method described in your book (chapter 10, page 421ff.).

A specific example: a client of us needs to export a recordset of about 20,000 records(!). If I implement the method in "your" way it takes more than 3 minutes to complete the export.

If I use


to create a temporary Access table and

DoCmd.TransferSpreadsheet acExport, , tmpTable, exportFileName, True

to export the data it's much faster: about 2 seconds!

I know: if using DoCmd.OutputTo you are limited to 65,000 records. There seems to be no limitation if using DoCmd.TransferSpreadsheet.

Thanks a lot in advance for answering and best regards from Germany!

Last edited by egan0815; August 16th, 2013 at 01:31 PM.
Reply With Quote