A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Calculate total in a form



 
 
Thread Tools Display Modes
  #1  
Old March 29th, 2010, 07:20 PM posted to microsoft.public.access.gettingstarted
munchkin
external usenet poster
 
Posts: 19
Default Calculate total in a form

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.


  #2  
Old March 29th, 2010, 08:09 PM posted to microsoft.public.access.gettingstarted
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Calculate total in a form

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.

"Munchkin" wrote in message
...
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.




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:33 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.