How to Print a Report When No Records Are InvolvedID: Q131200 3.00 WINDOWS kbtool The information in this article applies to:
SUMMARYThe REPORT FORM command requires an open table or cursor with at least one record, otherwise it doesn't print anything. This article shows how to work around this.
MORE INFORMATIONIf you have set up a report to print the results of a SQL statement sent to a cursor and that query returns zero (0) rows, the report doesn't print. The following code shows by example how to print the report even if zero rows are returned. It is valid for a report named TEST.FRX that contains three fields: fname, lname, and dob (date of birth). The CREATE CURSOR command must create a field for each field in your report.
Additional reference words: 3.00 VFoxWin
KBCategory: kbtool
KBSubcategory: FxtoolRwriter
|
Last Reviewed: May 1, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |