Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET RELATION TO - variable not found problem
Message
From
27/06/2003 06:30:47
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00804574
Message ID:
00804586
Views:
36
>>I think you don't have a field named iacc in table CUSTOMERS.
>>
>>Dino.
>
>It's the index of the child table. The SET ORDER TO TAG iacc works OK, do I need an index in both tables with exactly the same name?
>
>Thanks


Chris,
PMFJI but it should be a field (or combination of fields) in parent not a tag in child.

ie:
CustomerTable : pkID, otherfields (parent)
OrdersTable : customerID, otherfields

use CustomerTable && This doesn't need an index to be set or exist
use orderstable in 0 order tag customerID && Child needs a matching index
set relation to pkID into ordersTable

IOW you set a relation from field(s) in parent to a tag in child. If not order is set in child and relation field is numeric then relation is set between the field and recno('child').
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
Next
Reply
Map
View

Click here to load this message in the networking platform