Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Developer Toolkits / January 2004

Tip: Looking for answers? Try searching our database.

Exporting Access Tables to Excel 65536 Limit

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JohnB - 29 Jan 2004 21:21 GMT
Hi
I am writing a program that will export access tables to Excel.  The problem that I am having is that Excel has a limit of 65536 rows per worksheet, so data ends up missing from the worksheet.  Is there a way that I can export the remaing rows of data to another worksheet?  DoCmd.TransferSpreadsheet has a range paramater, is this what I need to use?  Can someone give me an example
Thanks
John W. Vinson - 30 Jan 2004 04:22 GMT
>Hi,
>I am writing a program that will export access tables to Excel.  The problem that I am having is that Excel has a limit of 65536 rows per worksheet, so data ends up missing from the worksheet.  Is there a way that I can export the remaing rows of data to another worksheet?  DoCmd.TransferSpreadsheet has a range paramater, is this what I need to use?  Can someone give me an example.
>Thanks

This is an Excel limitation. Excel spreadsheets (in the version to
which Access can export, anyway) are limited to 65536 rows.

You can't fit a gallon of wine into a quart jug.

                 John W. Vinson[MVP]    
   Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public
Douglas J. Steele - 31 Jan 2004 11:53 GMT
> You can't fit a gallon of wine into a quart jug.

I usually just drink the excess...

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(No private e-mails, please)

Ron Weiner - 30 Jan 2004 12:21 GMT
Why not test for the number of rows that have to get exported, and do the
export two or more times if the number of rows exceeds the 65K threshhold.
You can control which records are exported with the WHERE statement of your
query.

Excel 2000 and up I believe support more than 65K rows.  If your target
audience is using these versions you can export the data to a tab delimited
file whose name has an XLS extension.  When your user double clicks the file
Excel will open it as though it were in the native excel format.  Give it a
try.

Ron W

> Hi,
> I am writing a program that will export access tables to Excel.  The problem that I am having is that Excel has a limit of 65536 rows per
worksheet, so data ends up missing from the worksheet.  Is there a way that
I can export the remaing rows of data to another worksheet?
DoCmd.TransferSpreadsheet has a range paramater, is this what I need to use?
Can someone give me an example.
> Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.