R
RyanF17
I would like the 3 fields to be on a form as well. Field 1: user types in a
dollar amount, Field 2: user types in a dollar amount, Field 3: the sum of
Field 1 and Field 2 is there automatically as a default, but the user can
also change the value. And all 3 fields get saved into the table.
Yes it is possible there are a "very" few times when it's a good idea. Most
of the time you should run the calcultation as and when you need it in a form
or query or report.
The reason for this is that if you store a calculation such as "age.
Today - date of birth
The is will only be right today unless you do the calculation every day
(which would take some time on a large DB).
Open a new query based on the table and use the wizard (right click - build)
to help you with the calculation
Good luck
--
Wayne
Manchester, England.
dollar amount, Field 2: user types in a dollar amount, Field 3: the sum of
Field 1 and Field 2 is there automatically as a default, but the user can
also change the value. And all 3 fields get saved into the table.
Yes it is possible there are a "very" few times when it's a good idea. Most
of the time you should run the calcultation as and when you need it in a form
or query or report.
The reason for this is that if you store a calculation such as "age.
Today - date of birth
The is will only be right today unless you do the calculation every day
(which would take some time on a large DB).
Open a new query based on the table and use the wizard (right click - build)
to help you with the calculation
Good luck
--
Wayne
Manchester, England.
Did this post answer the question?RyanF17 said:I am creating an Access database and I would like a field in a table to have
a default that automatically gives the numerical sum of two other fields in
the same table, BUT also maintain the ability to edit the field. I would
like the field to just give the sum as a default, not a fixed value.
Example: Field 1 is "A Amount" and Field 2 is "B Amount" and I would like the
sum of "A Amount" and "B Amount" to show up in Field 3, but be
editable/overwritable. It would not work for me to put this expression into
the Default Value for Field 3 in the table. Is this possible?