D
doyapore
Dear All,
I am stuck with a problem which I hope can be easily solved by some of you

I have two tables:
1. Temp_01
2. Cumulative_01
Both these tables have identical fields:
1. Transdate [meaning Transaction Date]
2. Code [meaning employee code]
3. Earnings [meaning the weekly wages earned]
In both these tables, the Code is unique.
My problem is:
1. I wish to append data from Temp_01 to Cumulative_01
2. I do not wish to add duplicate data. In other words, if I find that
Transdate+Code exists in Cumulative_01, I will not append the data provided,
however, that the Earnings in both the tables are identical for the given
combination of Transdate+Code.
3. I also wish to know how many records have been appended. {As I recall,
there used to be a method in FoxPro which used to log the number of records
processed through any method, which was _TALLY. Do we have something to use
such as this in MS-Access?}
Can someone please help me with the problem using Query. I shall be grateful
if you could please help me with Query Design concept instead of the actual
SQL syntax. In any case, either of the methods would help my situation
Thanks in advance.
I am stuck with a problem which I hope can be easily solved by some of you

I have two tables:
1. Temp_01
2. Cumulative_01
Both these tables have identical fields:
1. Transdate [meaning Transaction Date]
2. Code [meaning employee code]
3. Earnings [meaning the weekly wages earned]
In both these tables, the Code is unique.
My problem is:
1. I wish to append data from Temp_01 to Cumulative_01
2. I do not wish to add duplicate data. In other words, if I find that
Transdate+Code exists in Cumulative_01, I will not append the data provided,
however, that the Earnings in both the tables are identical for the given
combination of Transdate+Code.
3. I also wish to know how many records have been appended. {As I recall,
there used to be a method in FoxPro which used to log the number of records
processed through any method, which was _TALLY. Do we have something to use
such as this in MS-Access?}
Can someone please help me with the problem using Query. I shall be grateful
if you could please help me with Query Design concept instead of the actual
SQL syntax. In any case, either of the methods would help my situation

Thanks in advance.