Dear All,
Thanks for all the previous help! It has brought me 6 months further in the research we are doing!
My problem in VFP9
I have two tables (A an B). Both contain similar data and have excactly the same structure. Only difference between them is Table B contains newer added records (that is records which are not in table A, but all all records from A are in B).
Both tables are index like this:
When I set relation into Table B from A (therefore A is master table):
it works fine and the tables are linked. HOWEVER, when I set the relation From B into A (therfore the newer table B is the Master) it doesn't work. I have scoured the helpfile and internet for reasons on this but cannot find an answer. I suspect it is because the newer table has more records. Can anyone help me else I need to resort to writing Large SQL queries to update the table in stead of REPLACE command
Thanks for all the previous help! It has brought me 6 months further in the research we are doing!
My problem in VFP9
I have two tables (A an B). Both contain similar data and have excactly the same structure. Only difference between them is Table B contains newer added records (that is records which are not in table A, but all all records from A are in B).
Both tables are index like this:
Code:
Index on Alltrim(PRAKCODE)+STR(patcode) Tag Joincode
When I set relation into Table B from A (therefore A is master table):
Code:
SET RELATION TO ALLTRIM(prakcode)+STR(patcode) INTO A
it works fine and the tables are linked. HOWEVER, when I set the relation From B into A (therfore the newer table B is the Master) it doesn't work. I have scoured the helpfile and internet for reasons on this but cannot find an answer. I suspect it is because the newer table has more records. Can anyone help me else I need to resort to writing Large SQL queries to update the table in stead of REPLACE command