Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refreshing a grid after a requery
Message
De
20/09/2006 01:29:36
 
 
À
19/09/2006 06:37:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01155001
Message ID:
01155357
Vues:
29
Thanks for your reply, Fabio,

However, I'm still having some problems. For instance, if I come across a record with a null value present as a result of the child table not having the parents primary index code value, the code is created programatically, by doing a lookup into the parent, appending a new record, and affixing the code to the child.

On doing a requery the first time, the new view does not show any changes. On doing a requery the second time, the code is added, but twice!! This possibly means that the second lookup does not see the code existing, and adds it again during the requery.

My code is as follows:
SELECT vuepkg
SET FILTER TO (ISNULL(nripe) OR ISNULL(ngreen)) AND vuepkg.copr="PKG"
scan
SELECT pkg  && This is the child table which has no matching code ...
APPEND BLANK
REPLACE ncode WITH vuepkg.nCode_a &&This is the code that is missing, but; present in the view, through the parent table
REPLACE ddate WITH vuepkg.ddate
SELECT vuepkg
endscan
sele vuepkg
requery()
Any help will be greatly appreciated!

Thanks,

Regards,

Steve.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform