I have setup the following relations.
*************************************
SELECT 1
USE d:\database\comp.dbf SHARED
SELECT 2
USE d:\database\name.dbf SHARED
SELECT 3
USE d:\database\forn.dbf SHARED
SELECT 4
USE d:\database\misc.dbf SHARED
SELECT 5
USE d:\database\data.dbf SHARED
SELECT 6
USE d:\database\canc.dbf SHARED
SELECT 5
SET ORDER TO TAG Nameid OF d:\database\name.cdx IN name
SET RELATION TO nameid INTO name ADDITIVE
SET ORDER TO TAG Nameid OF d:\database\forn.cdx IN forn
SET RELATION TO nameid INTO forn ADDITIVE
SELECT 2
SET ORDER TO TAG Companyid OF d:\database\comp.cdx IN comp
SET RELATION TO companyid INTO comp ADDITIVE
SELECT 3
SET RELATION TO companyid INTO comp ADDITIVE
SELECT 2
SET ORDER TO TAG Nameid OF d:\database\misc.cdx IN misc
SET RELATION TO nameid INTO misc ADDITIVE
SELECT 3
SET RELATION TO nameid INTO misc ADDITIVE
SELECT 6
SET RELATION TO nameid INTO name ADDITIVE
***********************************************
The resulting relational setup looks like what I want BUT when I "SELECT data" I get the "Target is engaged in relation" error.
What are the affects of this error on the system?
How should I restructure to avoid the error?
*************************************************
Additional Info:
Data - unique "Record Id" for all names in the system (plus
other "grouping" data)
Name - Demographics for Domestic addresses
Forn - Demographics for Foreign addresses
Misc - Common info for both Foreign and Domestic addresses
(phone, fax, email, etc)
Canc - unique lookup keys for all names in the system (once
canceled) Removed from "Data"
Comp - Company names both Foreign and Domestic
*************************************
SELECT 1
USE d:\database\comp.dbf SHARED
SELECT 2
USE d:\database\name.dbf SHARED
SELECT 3
USE d:\database\forn.dbf SHARED
SELECT 4
USE d:\database\misc.dbf SHARED
SELECT 5
USE d:\database\data.dbf SHARED
SELECT 6
USE d:\database\canc.dbf SHARED
SELECT 5
SET ORDER TO TAG Nameid OF d:\database\name.cdx IN name
SET RELATION TO nameid INTO name ADDITIVE
SET ORDER TO TAG Nameid OF d:\database\forn.cdx IN forn
SET RELATION TO nameid INTO forn ADDITIVE
SELECT 2
SET ORDER TO TAG Companyid OF d:\database\comp.cdx IN comp
SET RELATION TO companyid INTO comp ADDITIVE
SELECT 3
SET RELATION TO companyid INTO comp ADDITIVE
SELECT 2
SET ORDER TO TAG Nameid OF d:\database\misc.cdx IN misc
SET RELATION TO nameid INTO misc ADDITIVE
SELECT 3
SET RELATION TO nameid INTO misc ADDITIVE
SELECT 6
SET RELATION TO nameid INTO name ADDITIVE
***********************************************
The resulting relational setup looks like what I want BUT when I "SELECT data" I get the "Target is engaged in relation" error.
What are the affects of this error on the system?
How should I restructure to avoid the error?
*************************************************
Additional Info:
Data - unique "Record Id" for all names in the system (plus
other "grouping" data)
Name - Demographics for Domestic addresses
Forn - Demographics for Foreign addresses
Misc - Common info for both Foreign and Domestic addresses
(phone, fax, email, etc)
Canc - unique lookup keys for all names in the system (once
canceled) Removed from "Data"
Comp - Company names both Foreign and Domestic