L
Lynn Johnson
I have two tables of financial transactions from two different systems as
follows:
Table A
CompanyID
TranAmt
TRID (transaction ID from system A)
TranID (to hold Table B transaction identifier)
Table B
CompanyID
TranAmt
TranID (transaction ID generated by autonumbering in Table B to give unique
identifer)
TRID (to hold TableA transaction identifier)
I want to compare the tables such that where the CompanyID and TranAmt match
in both tables the TableA.TranID (identifier from other Table B) and
TableB.TRID (identifier from Table A) are updated. My update query is
working, except that there may be multiple matches of company ID and amount
such that one record in Table A could have several matches in Table B and
vice versa. What I want is only the first match to result in the IDs being
updated.
I don't know VBA so I need some advice on doing this through the Access
Query Wizard or the SQL view.
Many thanks in advance for any help you can provide.
follows:
Table A
CompanyID
TranAmt
TRID (transaction ID from system A)
TranID (to hold Table B transaction identifier)
Table B
CompanyID
TranAmt
TranID (transaction ID generated by autonumbering in Table B to give unique
identifer)
TRID (to hold TableA transaction identifier)
I want to compare the tables such that where the CompanyID and TranAmt match
in both tables the TableA.TranID (identifier from other Table B) and
TableB.TRID (identifier from Table A) are updated. My update query is
working, except that there may be multiple matches of company ID and amount
such that one record in Table A could have several matches in Table B and
vice versa. What I want is only the first match to result in the IDs being
updated.
I don't know VBA so I need some advice on doing this through the Access
Query Wizard or the SQL view.
Many thanks in advance for any help you can provide.