T
Tom Mackay
I am trying to figure out how to build an Append Query.
The append query adds new records to table that keeps track of yearly
customer financial records. The records are identified by both a unique
customer id and the year, and combined into a unique key that allows
retrieval of this data either by customer and/or by year.
Each year, new records are added for each customer. Most of the data is
brand new and easy to create and append. But there are 2 elements that rely
on the previous year's record for that customer..and I cannot figure out how
to identify last year's record for each client, and the fields I need in
order to make them part of this year's append action.
Specifically...
1) Each customer has a Begin Value and an End Value. This year's Begin
Value is equal to last year's End Value.
2) Similar. Each customer has a Running Total. This years Running Total
is equal to last year's Running Total plus this year's new business.
Any help would be most appreciated. No luck so far in using the client id
and the year to figure out how to identify the elements I need...
Thanks, Tom
The append query adds new records to table that keeps track of yearly
customer financial records. The records are identified by both a unique
customer id and the year, and combined into a unique key that allows
retrieval of this data either by customer and/or by year.
Each year, new records are added for each customer. Most of the data is
brand new and easy to create and append. But there are 2 elements that rely
on the previous year's record for that customer..and I cannot figure out how
to identify last year's record for each client, and the fields I need in
order to make them part of this year's append action.
Specifically...
1) Each customer has a Begin Value and an End Value. This year's Begin
Value is equal to last year's End Value.
2) Similar. Each customer has a Running Total. This years Running Total
is equal to last year's Running Total plus this year's new business.
Any help would be most appreciated. No luck so far in using the client id
and the year to figure out how to identify the elements I need...
Thanks, Tom