Microsoft Knowledge Base Email Alertz

You cannot export a report to an Excel format in Access 2007

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 934833 - Last Review: April 28, 2009 - Revision: 3.0

Unless you install the Office 2007 suite Service Pack 2, you cannot export a report to an Excel format in Access 2007

On This Page

SYMPTOMS

In Microsoft Office Access 2007, you may experience one or more of the following symptoms.

Symptom 1

Consider the following scenario. You try to export a report to a Microsoft Excel format. To do this, you right-click the report in the navigation pane, and then you point to Export. In this scenario, you may find that the Excel option is unavailable.

Symptom 2a

Consider the following scenario. You try to export a report to an Excel format by using the OutputTo macro action or the SendObject macro action. In the macro action, the value of the Object Type argument is Report. In this scenario, the option to export the report to the Excel format does not appear in the Output Format list..

Symptom 2b

Consider the following scenario. You run a macro that was created in an earlier version of Access. The macro has the OutputTo action or the SendObject action. In the macro action, the value of the Object Type argument is Report, and the value of the Output Format argument is Microsoft Excel 97-2003. In this scenario, you may receive the following error message:
The format in which you are attempting to output the current object is not available. Either you are attempting to output the current object to a format that is not valid for its object type, or the formats that enable you to output data as a Microsoft Excel, rich-text format, MS-DOS text, or HTML file are missing from the Windows Registry. Run Setup to reinstall Microsoft office Access or, if you're familiar with the settings in the Registry, try to correct them yourself. For more information on the Registry, click Help.
When you click OK in the Action Failed dialog box, error 2950 is displayed.

Symptom 3

Consider the following scenario. You run a Microsoft Visual Basic for Applications (VBA) procedure that contains the SendObject method. In this method, the value of the ObjectType argument is acSendReport, and the value of the OutputFormat argument is acFormatXLS. Alternatively, you run a VBA procedure that contains the OutputTo method. In this method, the value of the ObjectType argument is acOutputReport, and the value of the OutputFormat argument is acFormatXLS. In this scenario, you may receive the following error message:
Run-time error '2282': The format in which you are attempting to output the current object is not available.

RESOLUTION

To resolve this issue, upgrade to the 2007 Office suite Service Pack 2. With Access 2007 Service Pack 2, you can export a report to an Excel format in Access 2007.

WORKAROUND

If you cannot install the 2007 Microsoft Office suite Service Pack 2, you may use one of the following workarounds, depending upon the symptom you receive.

Workaround 1

To work around symptom 1 in the "Symptoms" section, use one of the following methods.

Method 1

In the navigation pane, right-click the table or query that is bound to the report, point to Export, and then click Excel. Then, follow the wizard to finish the export.

Method 2

In the navigation pane, right-click the report that you want to export, point to Export, and then select another format. For example, select one of the following formats:
  • Word RTF file
  • PDF or XPS
  • Access Database
  • Text File
  • XML File
  • Snapshot Viewer
  • HTML Document

Workaround 2

To work around symptom 2a and symptom 2b in the "Symptoms" section, use one of the following methods.

Method 1

In the macro action, change the value of the Object Type argument to either Table or Query. Additionally, change the value of the Object Name argument to the record source of the report.

Method 2

  1. In the Action Arguments for the OutputTo macro action or SendObject macro action, select another format in the Output Format list. For example, select one of the following formats:
    • HTML
    • Rich Text Format
    • Snapshot Format
    • Text Files
  2. Change the value of the Output File argument to the correct file name extension.

Workaround 3

To work around symptom 3 in "Symptoms" section, use one of the following methods.

Method 1

  1. In the VBA procedure, change the value of the ObjectType argument to one of the following:
    • acSendTable
    • acSendQuery
    • acOutputTable
    • acOutputQuery
  2. Change the value of the ObjectName argument to the record source of the report.

Method 2

  1. In the VBA procedure, change the value of the OutputTo argument to another value. For example, change the value of the OutputTo argument to one of the following values:
    • acFormatPDF
    • acFormatRTF
    • acFormatSNP
    • acFormatTXT
    • acFormatXPS
  2. Change the value of the OutputFile argument to the correct file name extension.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. This issue was fixed in the 2007 Microsoft Office suite Service Pack 2.

MORE INFORMATION

To use one of the following file formats in the 2007 Microsoft Office system, download the corresponding 2007 Microsoft Office add-in:
  • PDF
  • Snapshot
  • XPS
The following table lists these file formats, their corresponding add-ins, and the Microsoft Web sites for downloading the add-ins:
Collapse this tableExpand this table
File format2007 Microsoft Office add-inMicrosoft Web site
PDFMicrosoft Save as PDF or XPShttp://www.microsoft.com/downloads/details.aspx?FamilyID=4d951911-3e7e-4ae6-b059-a2e79ed87041 (http://www.microsoft.com/downloads/details.aspx?FamilyID=4d951911-3e7e-4ae6-b059-a2e79ed87041)
PDFMicrosoft Save as PDFhttp://www.microsoft.com/downloads/details.aspx?familyid=F1FC413C-6D89-4F15-991B-63B07BA5F2E5 (http://www.microsoft.com/downloads/details.aspx?familyid=F1FC413C-6D89-4F15-991B-63B07BA5F2E5)
SnapshotSnapshot Viewer for Microsoft Accesshttp://www.microsoft.com/downloads/details.aspx?FamilyID=b73df33f-6d74-423d-8274-8b7e6313edfb (http://www.microsoft.com/downloads/details.aspx?FamilyID=b73df33f-6d74-423d-8274-8b7e6313edfb)
XPSMicrosoft Save as PDF or XPShttp://www.microsoft.com/downloads/details.aspx?FamilyID=4d951911-3e7e-4ae6-b059-a2e79ed87041 (http://www.microsoft.com/downloads/details.aspx?FamilyID=4d951911-3e7e-4ae6-b059-a2e79ed87041)
XPSMicrosoft Save as XPShttp://www.microsoft.com/downloads/details.aspx?familyid=BCE8F991-F0A4-47A0-866B-2FD84A329E02 (http://www.microsoft.com/downloads/details.aspx?familyid=BCE8F991-F0A4-47A0-866B-2FD84A329E02)

APPLIES TO
  • Microsoft Office Access 2007
Keywords: 
kbexpertiseinter kbtshoot kbprb KB934833
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Anonymous User Report As Irrelevant  
Written: 10/20/2007 9:39 AM
You have got to be kidding me. My users love to see data in excel format and now I can not export from access to excel. I guess I will be using Access 2003 for a long time.

Anonymous User Report As Irrelevant  
Written: 5/7/2008 8:30 AM
Looks like data can be moved to Excel, just not the report. It needs to be done from a table or query.

RM Report As Irrelevant  
Written: 5/1/2009 10:12 AM
If you use a database created in 2003 that has a macro that uses sendobject to send a table in Excel format, that macro will not work in Access 2007, as the format is not recognized. If you fix it to work in 2007, it won't work anymore in 2003.