C
Chris Ratcliffe
I have a problem with an inherited database and need a quick fix.
The DB is a customer tracking system for donors to a not for profit. Each
year end the database is rolled and some information from "tblPeople" is
either stored to history or zeroed out.
"tblContributionHistory" contains three fields PersonID, Date, Amount
(eg)
PersonID Date Amount
-123 11/11/02 $50.00
-123 11/11/01 $30.00
1 11/11/02 $20.00
1 11/11/01 $50.00
1 11/10/00 $350.00
2 12/10/02 $20.00
2 12/11/01 $10.00
In the current year, the LifeTotal for a person is displayed in a field in
the donor's personal record in "tblPeople".
My problem is that at some point the database has failed to update the
LifeTotal field for some donors and has left the field blank.
I have a form "frmPerson" to view/edit individual records. Is there a
"simple" coding (or other) solution I could use to check the history table,
add up previous contributions (Amount) for each donor's PersonID and put
this amount into the "LifeTotal" field in "tblPeople" for that donor.
It has been some time since I did any VBA and I'd be greatful for any help
Chris Ratcliffe
The DB is a customer tracking system for donors to a not for profit. Each
year end the database is rolled and some information from "tblPeople" is
either stored to history or zeroed out.
"tblContributionHistory" contains three fields PersonID, Date, Amount
(eg)
PersonID Date Amount
-123 11/11/02 $50.00
-123 11/11/01 $30.00
1 11/11/02 $20.00
1 11/11/01 $50.00
1 11/10/00 $350.00
2 12/10/02 $20.00
2 12/11/01 $10.00
In the current year, the LifeTotal for a person is displayed in a field in
the donor's personal record in "tblPeople".
My problem is that at some point the database has failed to update the
LifeTotal field for some donors and has left the field blank.
I have a form "frmPerson" to view/edit individual records. Is there a
"simple" coding (or other) solution I could use to check the history table,
add up previous contributions (Amount) for each donor's PersonID and put
this amount into the "LifeTotal" field in "tblPeople" for that donor.
It has been some time since I did any VBA and I'd be greatful for any help
Chris Ratcliffe