One-to-many report prints first child if the scope is one (140489)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 6.0
- Microsoft Visual FoxPro for Windows 7.0
- Microsoft Visual FoxPro 8.0
- Microsoft Visual FoxPro 9.0 Professional Edition
This article was previously published under Q140489 SYMPTOMS
A 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.
CAUSE
In 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.
RESOLUTION
To have all the related records in the child table print for a specific
parent record:
- Use the FOR <expL> clause of the REPORT FORM command to identify the
record in the parent table.
-or-
- Use the NEXT <expN> clause of the REPORT FORM command where <expN> = the
number of child records related to the parent record.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 2/11/2005 |
---|
Keywords: | KB140489 |
---|
|