Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update command
Message
From
23/06/2006 12:54:55
 
 
To
23/06/2006 12:43:39
Mk Sharma
Shrishti Solutions
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
01131206
Message ID:
01131234
Views:
16
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform