Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids and SET RELATION problem
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Grids and SET RELATION problem
Divers
Thread ID:
00500174
Message ID:
00500174
Vues:
52
I have four grids on a form that associate with four tables--one parent and three child tables. The relations are set as follows:
SELECT t_pi01
SET RELATION TO T_PI01.prot_no+STR(T_PI01.prot_yr,2) INTO T_PI02 ADDITIVE
SET RELATION TO T_PI01.prot_no+STR(T_PI01.prot_yr,2) INTO T_PI03 ADDITIVE
SET RELATION TO T_PI01.prot_no+STR(T_PI01.prot_yr,2) INTO T_PI04 ADDITIVE
Later in my program I want to turn off the relations and view all the records. So I do the following:
SELECT t_pi01
SET RELATION TO
Thisform.Refresh()
All the grids have a RecordSourceType set to "Alias"


PROBLEM: All the child grids still show only the related records from the last relation. I cannot get the child grids to show all the records.

What am I doing wrong?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform