请参考下载区例程: 报表记录不满一页用空行代替
This article was previously published under Q139046 This article describes how to add blank lines between the printed lines on a report. You can use this method to add a blank line after a set number of lines. For example, you could use this method to add a blank line after every five lines of data in your report. NOTE: This article explains a technique demonstrated in the sample files, RptSampl.exe (for Microsoft Access for Windows 95 version 7.0) and RptSmp97.exe (for Microsoft access 97). For information about how to obtain these sample files, please see the following articles in the Microsoft Knowledge Base: 145777 ACC95: Microsoft access Sample Reports Available in Download Center
175072 ACC97: Microsoft access 97 Sample Reports Available in Download Center To add a blank line after every five lines in a report, follow these steps:
Open the sample database Northwind.mdb. Click the Reports tab, and then click New.
In the Object box of the code module, select Report. In the Procedure box of the code module, select Open. Type the following procedure:
In the Object box, select Detail. The Procedure box will change to Format. Type the following procedure:
Close the module, and then preview the report. Note that there is a blank line in the report after every five lines of detail. REFERENCES For more information about the NextRecord or PrintSection properties, search for "NextRecord," and then "NextRecord property" using the Microsoft access 97 Help Index. Last Reviewed: 11/17/2000 Keywords: kbhowto KB139046
|
录入:changechange(CSDN) 责任编辑:cg1