Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET RELATION QUESTION
Message
From
28/12/1999 17:19:15
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00309541
Message ID:
00309557
Views:
24
Francisko,

Why are you trying to use a loop to do this. Try this

Select * ;
from orditems ;
into cursor tmporditems ;
where itemnumber in (select itemnum from orders where ordernum = customer.orders)

This should get you the items for each order for a specific customer.

HTH

Jeff

>I have a relation between customers,orders,orditems that work fine, but how can i do to fill a a cursor with the items of orditems that match the relation.
>if i do "do while !eof()" in orditems doesn't work. I loose the relation.
>
>EX:
>
>Peter Market
>Jhon Smith........Order11231
> Order11431...........Item111
> Item222
> Item333
>
>Create cursor ABC...
>DO WHILE ?????
> APPEND BLANK
> REPLA abc.item with orditems.item
>ENDDO
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform