PRB: One-to-Many Report Prints First Child If Scope Is OneID: Q140489 2.5x 2.6x 3.00 3.00b WINDOWS kbprg kbprb The information in this article applies to:
SYMPTOMSA one-to-many report with a scope of one record in the parent table does not display all the related records in the child table. Only the first related child record prints where the tables have a parent and child one-to-many relationship.
CAUSEIn one-to-many relationships, when you skip through the parent table, the record pointer remains on the same parent record until the record pointer moves through all related records in the child table.
RESOLUTIONTo have all the related records in the child table print for a specific parent record:
STATUSThis behavior is by design.
MORE INFORMATIONFor more information about how to specify a scope for a report in Visual FoxPro, please see the following article in the Microsoft Knowledge Base:
Visual FoxPro Steps to Reproduce Behavior1. Open the Testdata database located in the \Samples\Data directory 2. Create a new report using the One-to-Many Report Wizard.
3. Save the report as Test.frx in the default directory.
4. In the Command window, type:
5. Examine the report. Only the first of thirteen child records prints.
Example ResolutionTo resolve this behavior, use the FOR clause of the REPORT FORM command, as in these examples:
Additional reference words: 2.50 2.50a 2.50b 2.60 2.60a 3.00 3.00b FoxWin
VFoxWin
KBCategory: kbprg kbprb
KBSubcategory: FxprgRelation
|
Last Reviewed: December 15, 1995 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |