ACC2000: Detail Section Blank When Form Is Printed or Previewed (209028)
The information in this article applies to:
This article was previously published under Q209028 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
SYMPTOMS
When you print or preview a form, the detail section of the form is blank,
even though controls are visible in the detail section when you view the
form in Form view. Other sections, such as the form header and form footer,
appear correctly when you print or preview the form.
CAUSE
This behavior occurs if the form's underlying table or query returns no
records, or if the DisplayWhen property of the detail section is set to Screen Only.
RESOLUTION
To resolve this behavior, use one of the following methods.
Method 1
Make sure that the underlying table or query returns at least one record.
Method 2
Use a report instead of a form. To create a report that looks like a form, follow these steps:
- Open the form in Form View.
- On the File menu, click Save As.
- In the Save Form '<name>' To box, type the name of the report. In the As box, click Report, and then click OK.
- Open report that you saved in step 3 to make sure that it looks like you want it to. You can now print the report.
Method 3
Place the controls that you need in other sections, for example, in the form header or in the form footer.
Method 4
If the DisplayWhen property of the detail section is set to Screen Only, change it to Always or to Print Only.
REFERENCESFor more information about the DisplayWhen property, click Microsoft Access Help on the Help menu, type DisplayWhen property in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Major | Last Reviewed: | 12/12/2002 |
---|
Keywords: | kbdta kbprb kbprint kbusage KB209028 |
---|
|