Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Skip problem
Message
 
To
30/03/2006 22:19:23
Bruce Gilmour
Cal-Mour Consultants
Calgary, Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01108916
Message ID:
01109480
Views:
31
>I took out the SET SKIP and all it printed was the first record in each of the child tables. I thought you needed a SET SKIP when there was a one to many relationship?

Make sure you have the proper indexes defined on the child tables. Also make sure that you don't have any tables in the data environment that are messing up what you are trying to establish.

Here's some sample code taken from my article on MSDN. It shows how to set up the tables for a situation where there is a parent and three child tables.
*-- Open the child tables
USE Members IN 0 ORDER CustomerFK
USE Vehicles IN 0 ORDER CustomerFK
USE Homes IN 0 ORDER CustomerFK

*-- Open the parent table
SELECT 0
USE customer ORDER CustomerPK

*-- Set the relations between the parent and children
SET RELATION TO CustomerPK INTO Members
SET RELATION TO CustomerPK INTO Vehicles ADDITIVE
SET RELATION TO CustomerPK INTO Homes ADDITIVE

*-- Run the report
REPORT FORM Insurance PREVIEW
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform