Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Child Grids not showing correct info
Message
De
16/06/2005 11:44:27
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Child Grids not showing correct info
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Divers
Thread ID:
01024007
Message ID:
01024007
Vues:
73
Hi all

I have a form with several different grids on it, each on their own page. Each grid has a different recordsource, but the cursors are all related. There is the parent table – Customers, and serveral child tables – Addresses and Contacts. Everything works okay until the user wants to work with a smaller data set. I add a Grandparent Table – FilterCustomer which limits the Customer table. When I do this, the two child tables refuse to work correctly. I have put code into the click and activate method of the pages trying to get this to work. The code was:
local lcAlias, lcCust
lcAlias = ALIAS()
lcCust = Customer.custmer_id
SELECT 'Customer'
LOCATE FOR custmer_id = lcCust
SELECT 'addresses'
LOCATE FOR custmer_id = lcCust
SELECT (lcAlias)
This will get the text boxes on those pages to show the correct info, but the grids are not correct. And as soon as I click on a cell in the grids, the textboxes are incorrect.

Can someone help me here?

I am using the basic VFP Forms and buttonset.

Thanks,
Beth
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform