G
Guest
Hello, I posted a question last week and I guess it was too vague, I have not
gotten any response. I will attempt to be more clear.
I am working with Access 2000, I have ADO and DAO both referenced in the
library.
My form is based on a table. This is an input form for a 5 yr budget. The
first year is broke down in 12 months and a total, the 2nd year is broke down
into 4 quarters and a total, the last 3 years are totals only.
What I would like to happen is when the user enters data into Jan. the Total
Yr1 field updates by adding the values in Jan-Dec. When the user enters data
in Feb. the Total Yr1 updates again.
Since the field I have named Total Yr1 is bound to the main table, I have
placed a hidden unbound text box on the form in order to perform the
calculations. It is called Calculate1. For its control source I have summed
the Jan-Dec fields. My next attempt was to use the Jan field's AfterUpdate
event to say the Total Yr1 = Calculate1.value, and I planned to use the same
event for all the months. The problem is that it calculates ALL the records,
giving me a running sum. I only want to see a total for the current record
that is being used. Upon leaving the form I want to make sure it calculates
again.
My first instinct was to write a function that would perform the addition of
the 12 months, and to call on that function for the updates. I have not had
any success on getting that to work. It has been several years since I have
worked on a database and I am somewhat rusty. I'm also self-taught and my
knowledge is very limited.
I sure would appreciate if someone could get me pointed in the right
direction. This form will work without the totals, but I think it would be
much more beneficial to the user if they could see the totals. The users are
more accustomed to using Excel and if the form could function more like an
excel spreadsheet, the happier I would be.
Donna
gotten any response. I will attempt to be more clear.
I am working with Access 2000, I have ADO and DAO both referenced in the
library.
My form is based on a table. This is an input form for a 5 yr budget. The
first year is broke down in 12 months and a total, the 2nd year is broke down
into 4 quarters and a total, the last 3 years are totals only.
What I would like to happen is when the user enters data into Jan. the Total
Yr1 field updates by adding the values in Jan-Dec. When the user enters data
in Feb. the Total Yr1 updates again.
Since the field I have named Total Yr1 is bound to the main table, I have
placed a hidden unbound text box on the form in order to perform the
calculations. It is called Calculate1. For its control source I have summed
the Jan-Dec fields. My next attempt was to use the Jan field's AfterUpdate
event to say the Total Yr1 = Calculate1.value, and I planned to use the same
event for all the months. The problem is that it calculates ALL the records,
giving me a running sum. I only want to see a total for the current record
that is being used. Upon leaving the form I want to make sure it calculates
again.
My first instinct was to write a function that would perform the addition of
the 12 months, and to call on that function for the updates. I have not had
any success on getting that to work. It has been several years since I have
worked on a database and I am somewhat rusty. I'm also self-taught and my
knowledge is very limited.
I sure would appreciate if someone could get me pointed in the right
direction. This form will work without the totals, but I think it would be
much more beneficial to the user if they could see the totals. The users are
more accustomed to using Excel and if the form could function more like an
excel spreadsheet, the happier I would be.

Donna