Troubleshoot reports

Printing and previewing

My report prints a blank page at the end of a printed report.

Make sure the Height property is set to zero for the report footer.

Every other page in my report is blank.

Make sure that the total width of the form or report plus the widths of the left and right margins don't exceed the paper size specified in the Page Setup dialog box (File menu). You can use the following formula as a guide:

report width + left margin + right margin <= paper size

You can adjust the size of the report in one or both of the following ways:

There is too much blank space in my report.

You can reduce the blank space by doing one of the following:

Layout Preview displays the wrong data.

Layout Preview displays all the sections of a report and a few detail records. It sorts and groups the data it displays, but ignores any parameters, criteria, or joins in the underlying query. For example, the detail records you see in a group may not be the records that actually belong in that group.

To verify the accuracy of the data in a report, use Print Preview.

My report prompts me for unexpected parameters.

Make sure that all field names used in the following areas of the report's design are spelled correctly and match field names in the underlying table or query:

Also, make sure that any aggregate functions reference field names in the underlying table or query, not control names.

Working with subreports

The column headings in my subreport don't print.

Microsoft Access doesn't print the page header and footer in a subreport, so if you put the labels for the column headings in the subreport's page header, they won't show up when you print the report.

The data in my report and subreport is not synchronized. All records show up in the subreport.

Link your main report and subreport using the LinkChildFields and LinkMasterFields properties.

How?

  1. Open the main report in Design view.

  2. Make sure the subreport control is selected, and then click Properties on the toolbar to display the property sheet for the subreport control.

  3. Set the linking fields. To enter more than one linking field or control, separate the field or control names with a semicolon. If you enter more than one field or control, you must enter the names in the same order in the LinkChildFields and LinkMasterFields properties.

    Note   You can't use the name of a control in the LinkChildFields property box. The LinkMasterFields property can be set to the name of either a field or a control.

  4. If you're unsure what the linking fields should be, click the Build button next to either property box to open the Subform/Subreport Field Linker.

If you've already set the LinkChildFields and LinkMasterFields properties and the subreport still doesn't work, make sure that:

Notes

My subreport prints only one column when it should print more.

A subreport might print only one column if:

You can redesign the report in one of the following ways:

Sorting and grouping

The records in the groups aren't sorted

You must specify a sort order for the records in a group in the Sorting And Grouping box in report Design view. For example, if you want to sort the orders that were shipped each day by Order ID, group on Shipped Date and sort on Order ID.

The records aren't sorted in the way I expect for my language.

In a Microsoft Access database (.mdb), set the sort order for the database to the correct language in the Options dialog box.

How?

  1. On the Tools menu, click Options.

  2. Click the General tab.

  3. To specify the default language sort order for a new database, click the language that you want to use in the New database sort order box.

Note   To reset the sort order for an existing database to the language that you selected in the General tab, compact that database.