dBforums > PC based Database Applications > Microsoft Access > Compairing tables for duplicate records and increment
LinkBack Thread Tools Search this Thread Display Modes
#1 (permalink) Today, 00:40
osimini
Registered User Join Date: Jun 2008
Posts: 23
Compairing tables for duplicate records and increment
--------------------------------------------------------------------------------
I believe somebody may have done this. I have two tables to compare for duplicates. Say 'tblA" and "tblB". Both tables have the same unique key (link). I want to cmpair both tables and if duplicate record is found, I will like to keep the record in tblA and increment the record in tbl with next available number. For example here is the sample table data: Please can some body direct me for solution
tblA:
id Field1 Field2
A10109 MC A10109
A10109 MC A10109Z
A10109 MC A10109Z2
A10109 MC A10109Z3
A10109 MC A10109Z4
A10113 MC A10113Z
A10113 MC A10113Z2
A10140 MC A10140Z
A10175 MC A10175Z
A10175 MC A10175Z2
A10217 MC A10217Z
A10223 MC A10223Z
tblB:
ID Field1 Field2
A10109 CO A10109Z1
A10109 CO A10109Z2
A10109 CO A10109Z3
A10113 CO A10113Z1
A10113 CO A10113Z2
A10175 CO A10175Z1
A10175 CO A10175Z2
A10175 CO A10175Z3
A10175 CO A10175Z4