Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating a table based on a cursor
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00866620
Message ID:
00866626
Views:
16
>SCAN
>replace modacad.mochk009 WITH result.mochk009 for result.mainkey=modacad.mainkey
>ENDSCAN
>I basically want to change modacad.mochk009 (table) with the value in the cursor (result)
>where the mainkey is both in modacad and result.

For that to work as you have it, you would need a relation set between them, which you don't mention here.

If you do have one, and it's set correctly, try:
REPLACE mochk009 WITH result.mochk009 IN modacad FOR result.mainkey=modacad.mainkey
in case you're having trouble with one of your tables being at EOF().
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Reply
Map
View

Click here to load this message in the networking platform