WayneBecker
Programmer
I want to exchange data between one table and another. Table A will ship with the new application. Table B will already reside on the customers hard drive from a previous version. The customer may have added records in Table B that do not exist in Table A. They both have the same fields. They are indexed on the same three fields.
I want to step through the two tables. For the records that are the same, based on the three index fields, I want to replace the fields in Table A with the data in five fields in Table B. If we find the customer has added a record into Table B that is not in Table A, I want to append the full record to Table A.
Table A and Table B Fields:
cBOB, nNumber, cSub, cDenomination, cComments, cMint, cUsed, cFDC, cBlock, mDescribe, etc.
Table A and Table B Index:
cBob+STR(nNumber,7,0)+cSub
Fields to be replaced in Table A from Table B when the records are the same:
cMint, cUsed, cFDC, cBlock, mDescribe
Thanks in advance for your kind help..............Wayne
I want to step through the two tables. For the records that are the same, based on the three index fields, I want to replace the fields in Table A with the data in five fields in Table B. If we find the customer has added a record into Table B that is not in Table A, I want to append the full record to Table A.
Table A and Table B Fields:
cBOB, nNumber, cSub, cDenomination, cComments, cMint, cUsed, cFDC, cBlock, mDescribe, etc.
Table A and Table B Index:
cBob+STR(nNumber,7,0)+cSub
Fields to be replaced in Table A from Table B when the records are the same:
cMint, cUsed, cFDC, cBlock, mDescribe
Thanks in advance for your kind help..............Wayne