Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with parent and child tables
Message
From
31/08/1999 07:06:54
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Problems with parent and child tables
Miscellaneous
Thread ID:
00259575
Message ID:
00259575
Views:
49
I am using VFP 50a.
I have one form that calls another form when I press a command button (DO FORM secondform WITH Thisform.datasessionid if the second form
is not activate. If it is activated I issue just activate secondform).
The first form is private datasession and the second is default datasession.

In the init method of the second form I set the datasession with the same number of the first form. The second form uses one table that is child table of the parent table that I am using on the first form.

The problem is: when I call the second form for the first time
(DO FORM secondform WITH Thisform.datasessionid) the child table in this form (I am using a grid to show the child table) does not show the correct records.

But if I navigate to the first form (clicking on it) and after that clicking on the second form the grid show the correct records.

In the activate method of the second form I SELECT childtable.
I have tried to put in the activate method of the second form the following commands
SELECT parenttable
GO RECNO('parenttable')
SELECT childtable
but no difference.

I have tried to break the relationship too and rebuild it, but nothing
different happens.

Does anyone could help me?
Antonio Carlos Kleinübing
Systems Analyst
Reply
Map
View

Click here to load this message in the networking platform