Calculate total in a form

  • Thread starter Thread starter Munchkin
  • Start date Start date
M

Munchkin

Is this possible, and if so how do you do it?

Our form contains all fields on our table. One field is "total", which
should total "M&E" and "E".

We want to be able to enter on our form a dollar amount in "M&E" and "E",
and have our form automatically calculate the total for us.
 
Are you saying that your underlying table has a field named "total"? If so,
just guessing, you try to store a calculated total amount in that field,
right?

Unlike a spreadsheet, where this is common, Access is a relational database.
You most often do NOT want to store a calculated value, mainly because you
will then have to figure out how to ALWAYS keep it in sync with the values
from which it is calculated. (oh yeah, other reasons like takes up extra
storage unnecessarily and takes longer to retrieve from disk that to
calculate in memory ...)

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.
 
Back
Top