• Home
  • Blog
  • Resume
  • Contact
  • Projects
  • Gallery
  • Amit’s Resume
  • About Nagpur
KEEP IN TOUCH

Access Export to Excel (2007)

Mar02
2009
13 Comments Written by admin

When I tried to export a table/query from Access 2007 to Excel 2007, I was getting this annoying error:

You selected more records than can be copied onto the Clipboard at one time. Divide the records into two or more groups, and then copy and paste one group at a time. The maximum number of records you can paste at one time is approximately 65,000.

Access 2007 Export to Excel Error

Access 2007 Export to Excel Error

I was unable to understand the reason, because I thought Excel 2007 did not limit number of rows to 65,536. It turns out however that it is the clipboard limitation.

Solution: If you check off the “export data with formatting and layout” option, Access exports successfully.

You can export successfully using Transferspreadsheet (VBA) option too.

Here is the KB from MS.

Solution Update:Thanks to Brett, it looks like that only if you export table/query using right click > Export and have the checkbox cleared, then Access will export succesfully. That is what I always do, and it works for me. I have never tried External data option for exporting.

Related posts:

  1. Access VBA: Export Access tables using ODBC
  2. Access VBA: Delete tables from Access database
  3. Access VBA: Convert Access tables to arff format
  4. Access VBA: Link all Dbase files from a folder
  5. XY scatter plot in MS Access
Posted in Access, Error messages - Tagged Access, error, export
SHARE THIS Twitter Facebook Delicious StumbleUpon E-mail
« Create Sheets based on a Column
» The data on the Clipboard is damaged, so Microsoft Office Access can’t paste it.

13 Comments

  1. Diana Hargus's Gravatar Diana Hargus
    May 13, 2009 at 10:12 am | Permalink

    Actually, this is incorrect. The solution provided by M$ is pure rubbish and does not resolve the issue. Don’t believe me? I can show a total of 8 databases I tried to export this morning alone and not one of them would export. The issue is not within office but rather in the clipboard by the looks of things

  2. a7n9's Gravatar a7n9
    May 13, 2009 at 10:41 am | Permalink

    Diana, thanks for your comment. I am rather surprised that it didn’t work for you. I had to scratch my head for long when I could not export big tables, but checking that option off worked for me. Can I know the details of the table? If you are exporting about eight tables, you should try and write a VBA procedure to export all the tables in your db to Excel files.

  3. Brett Gustafson's Gravatar Brett Gustafson
    June 22, 2009 at 4:05 pm | Permalink

    Oddly enough, I’ve found that if you go to the External Data -> Export -> Excel that you will experience Diana’s issue. However, If you right click on your table/query and then go to Export -> Excel, it will work if you have the formatting checkbox off.

  4. a7n9's Gravatar a7n9
    June 23, 2009 at 8:18 am | Permalink

    Thanks for your comment, Brett. Hmm.. now that is something. I have always exported using right click on the table/query, and that is why checking off worked for me. Let me update my post with your solution. Thanks!

  5. Claude Perron's Gravatar Claude Perron
    September 22, 2010 at 9:48 am | Permalink

    I lost 4 hours trying to figure out what was wrong with the export of 380k record from Access 2007 using the export function from the main menu. However right-clicking on the Query results and export to Excel as mentionned in the thread worked beautifully. This is very annoying and time consuming. How dumber can this be ? Thanks for the hint. MS screwed up again.
    Thanks,

  6. PaulN's Gravatar PaulN
    February 17, 2011 at 1:14 am | Permalink

    I haven’t found the right-click method to work when the normal export doesn’t, whether or not the formatting box is checked. I think that “solution” was just luck.

    The limitations of the clipboard are also not the reason for failure.

    I’ve had the problem on occasion and other times I’ve successfully exported hundreds of thousands of records.

    I believe the problem has to do with how the database was created in the first place – at least in my case. My original database was created using Access 2003 and I opened it with Access 2007. More than 64 KB rows of records wouldn’t export. It would not export as text either.

    I “converted” the database to Access 2007 using “Save as” and I still couldn’t export over 64 KB of rows to Excel 2007 (also would not export as text).

    I think that the limitations of the Access 2003 version are carried forward to the 2007 version of Access when converted by either of these methods but this is just a guess.

    What I had to do was create a new, blank, Access 2007 database and import the tables and queries I needed to produce my export file for Excel. After doing this I was able to export several hundred thousand records to Excel by right-clicking on the query object and selecting Excel OR by using the Excel export button under the “External Data” tab.

    Hope this helps.

  7. a7n9's Gravatar a7n9
    February 17, 2011 at 8:41 am | Permalink

    Paul, thanks for your reply and other suggestions. I do not think it was pure luck. Formatting does take significant resources and right-click does give you that option. If exporting worked for you after creating a new database, could it be a db corruption issue?

  8. Michael K's Gravatar Michael K
    April 27, 2011 at 9:58 am | Permalink

    I was having similar problems exporting more than 65K+ from an Access 2007 db to Excel. I did find a workaround…Export the table/query from Access as a txt file and then open that file in Excel. It worked for a 290K+ line table I had. This was the only way I was able to export the whole table at one time.

  9. jon olsen's Gravatar jon olsen
    August 3, 2011 at 1:01 pm | Permalink

    I am trying to export via a query and I don’t see an option to export without formatting, any ideas?
    thanks.

  10. Ed Burckhardt's Gravatar Ed Burckhardt
    August 29, 2011 at 4:35 pm | Permalink

    Thanks for the quick solution a7n9, I right clicked on the table as you suggested and it exported 236K records flawlessly.

  11. rama's Gravatar rama
    September 3, 2011 at 6:08 am | Permalink

    I have the some issue in exporting a report excel.

    I have header as test report

    where as in excel i get this printed as “40789″ in place of test report. it is kind of format error. any clue why this happens?

  12. Rwill's Gravatar Rwill
    December 9, 2011 at 1:35 pm | Permalink

    The reason this is happening is because the database is older than 2007 the database needs to be converted to MS Access 2007
    ext – accdb . Go to save as and you can save it as the new version.

  13. larry's Gravatar larry
    January 11, 2012 at 5:41 pm | Permalink

    i was able to build an access database in 2003 and create a macro which exported more than 65,000 records with no problem. i am trying to build a new macro and get the error of cannot export more than 65,000 records. what is the workaround for a macro.
    larry

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

*

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Tags

Access Alt F8 Books boxplot cells charts count cursor dashboard data mining dbase design error excel excel functions export filter flip LaTex MS query Number Err ODBC pipes Press Alt F11 Public Sub python R random numbers Range Cells report scripting software sparklines SQL SQL server stack columns statistics stemming string tag cloud text mining UDF VBA visualization wildcard

Network

View Ashutosh Nandeshwar's profile on LinkedIn

Recent Comments

  • W. McNabb on The search key was not found in any record in Access
  • Manuel on The search key was not found in any record in Access
  • Wendy Naples on The search key was not found in any record in Access
  • larry on Access Export to Excel (2007)
  • Betty Chou on Projects

Related Posts

  1. Access VBA: Export Access tables using ODBC
  2. Access VBA: Delete tables from Access database
  3. Access VBA: Convert Access tables to arff format
  4. Access VBA: Link all Dbase files from a folder
  5. XY scatter plot in MS Access

EvoLve theme by Blogatize  •  Powered by WordPress nandeshwar.info