Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is wrong here?
Message
From
09/06/1999 09:46:05
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
08/06/1999 14:42:15
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00227589
Message ID:
00227853
Views:
29
>Let's try for the simpliest answer first: have you checked that there are really at least one record in Workpo that have Code = "1"?
>
>>SELECT workpo
>>*blah blah blah
>>SELECT histpo
>>APPEND FROM workpo FOR workpo.code = "1"
>>
>>then I look in histpo, there is nothing...

APPEND FROM workpo FOR code = "1"

When Fox evaluates the conditions in an Append From statements, it first appends the record, and then checks it's validity, and then discards it or keeps it. Using the alias of the source table actually confuses it - you don't know which record it thinks about (i.e. what's the current record in WorkPO that the filter applies to).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform