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