Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update command
Message
De
23/06/2006 12:54:55
 
 
À
23/06/2006 12:43:39
Mk Sharma
Shrishti Solutions
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
01131206
Message ID:
01131234
Vues:
17
Mk

The update statement doesn't know WHICH PCode rec you're referring to. Try:
* First select/go to the PCode1 rec of interest

lcPCode   = pcode1.pcode    && i.e. of the currently selected (required) PCode rec
lcVatType = pcode1.VatType

* You don't put in the updated field's table name

update inward1 ;
  set vattype = lcVatType ;
  where inward1.pcode = lcPCode 
HTH

Terry

>"pcode1.dbf" is product master data file.
>"inward1.dbf" is transaction data file.
>
>i think it is updating first record only.
>
>warm regards,
>mk.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform