

请参考下载区例程: 报表记录不满一页用空行代替 ACC: Print Blank Line Every Nth Line in a Report (95/97) The information in this article applies to: Microsoft access for Windows 95 7.0 Microsoft access 97 This article was previously published under Q139046 SUMMARY Moderate: Requires basic macro, coding, and interoperability skills. 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 MORE INFORMATION CAUTION: Following the steps in this example will modify the sample database Northwind.mdb. You may want to back up the Northwind.mdb file and perform these steps on a copy of the database. 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 New Report dialog box, click Report Wizard, choose the Employees Table, and then click OK. In the Available Fields box, select EmployeeID, and then click the ">" button. Repeat this step for the LastName, FirstName, and BirthDate fields, and then click Next. Select BirthDate as the primary group level, click the ">" button, and then click Next. Select LastName as the field to establish sort order in Field 1, and then click Next. On the "How would you like to lay out your report" screen, click Next. On the "What Style would you like?" screen, click Next. On the "What Title would you like for your report?" screen, type Employee Birthdays, and then click Finish. View the new report in Design view. On the View menu, click Code. Type the following lines in the module's Declarations section:
http://support.microsoft.com/default.aspx?scid=kb;en-us;139046
|
录入:changechange(CSDN) 责任编辑:cg1