Microsoft KB Archive/180458

= ACC: Problems Outputting Report with Datasheet Form as Subreport =

Article ID: 180458

Article Last Modified on 1/22/2007

-

APPLIES TO


 * Microsoft Access 95 Standard Edition
 * Microsoft Access 97 Standard Edition

-



This article was previously published under Q180458



Novice: Requires knowledge of the user interface on single-user computers.



SYMPTOMS
If a report contains a form as a subreport, and the form is in Datasheet view, if you try to output the report to another file format such as text (*.txt), Microsoft Excel (*.xls), or rich text format (*.rtf) you may see the following unexpected behavior, depending on your version of Microsoft Access.

In Microsoft Access 97

--

  You receive the message

Now outputting page  of     ' ' to the file ' '

where  is incremented indefinitely until you click Cancel. An output file is not created.

In Microsoft Access 7.0

---

  You receive the message

The Save As command can't process any subforms contained in your report. Do you want to proceed anyway?

When you click Yes, you receive the message

Now outputting page  of     ' ' to the file ' '

where  is incremented indefinitely until you click Cancel. An output file is not created.

This behavior occurs regardless of the file format to which you output the report.



RESOLUTION
To work around this behavior, use the Save As Report option to save the form as a report before you output the report. To do so, follow these steps:


 * 1) In the Database window, right-click the form, and then click Save As Report on the menu that appears.
 * 2) In the Save Form As Report dialog box, type a name for the report, and then click OK.
 * 3) Open the main report in Design view.
 * 4) Right-click the control that contains the datasheet form, and then click Properties.
 * 5) Click the Data tab and change the source object from Form. to Report., where  is the name of the datasheet form and  is the name of the report you saved in step 2.



Steps to Reproduce Behavior

 * 1) Open the sample database Northwind.mdb.
 * 2) In the Database window, click the Forms tab, and then click New.
 * 3) In the New Form dialog box, click AutoForm: Datasheet.
 * 4) In the drop-down list, click Shippers to base the form on the Shippers table, and then click OK.
 * 5) On the File menu, click Close. When you are prompted to save changes to the design of the form ' ', click Yes.
 * 6) In the Save As dialog box, type frmShippers, and then click OK.
 * 7) In the Database window, click the Reports tab, and then click New.
 * 8) In the New Report dialog box, click Design view, and then click OK to create a new, unbound report.
 * 9) On the Window menu, click Tile Vertically.
 * 10) In the Database window, click the Forms tab, and drag the frmShippers form to the Detail section of the new report.
 * 11) On the File menu, click Save As/Export.
 * 12) In the Save As dialog box, click "To an External File or Database," and then click OK.
 * 13) In the Save Report dialog box, click Rich Text Format (*.rtf) in the Saved As Type list box, and then click Export. Note that you see the behavior described in the "Symptoms" section. You must click Cancel to dismiss the "Now outputting" message, and the output file is not created.

Additional query words: problem can't cannot

Keywords: kbprb KB180458

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.