Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP60- Record number
Message
From
19/01/2000 09:52:30
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
19/01/2000 09:41:34
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00319851
Message ID:
00319860
Views:
10
>I have a parent table and a child table, I want to get a cursor using a SELECT command containing field1 from parent table and field1 from child table plus the record number for each child record found.
>
>Any suggestions? Thank you in advance.


If SQL has more than one table than recno() is not reliable. As a workaround you could do this :
luField1 = parent.field1
luPKvalue = parent.PKfield

select luField1 as ParF1,recno() as rcno, * from Child ;
 where Child.LinkField = luPKvalue ;
 into cursor myCursor
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform