Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CA not updating after an APPEND FROM
Message
De
09/12/2009 11:15:49
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01438220
Message ID:
01438226
Vues:
62
I can't think of anything. We do that sort of thing a lot and it can work, although I'm trying to use more SQL syntax.
INSERT INTO (ca.Alias) Field1, Field2 SELECT Field1, Field2 FROM Table.DBF
UPDATE (ca.Alias) SET Field1 = otherCursor.Fieldx FROM (ca.Alias) JOIN (othercursor2) ON ...
Obviously, you can probably avoid the update/replace entirely by INSERTing from a good SELECT statement. You are using VFP 9 and it really has good SQL abilities.

Otherwise, just check the normal stuff. TableUpdate for all rows? What's the GETFLDSTATE() after the insert?

>I am having a wierd issue with a Cursor Adapter
>
>If i insert one record with an append blank and then replace the values with REPLACE, works well, however in some particular part of the code i perform a APPEND FROM TABLE.DBF
>
>then, i need to bring a value from another table and update one particular field so I perform a Scan EndScan
>
>when the cycle is over, I browse the CA an the value is there, but when i see the sql table, ain't it.
>
>i even run atableupdate and nothing
>
>any ideas??
Charlie
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform