PC Review


Reply
Thread Tools Rate Thread

Calculate total in a form

 
 
Munchkin
Guest
Posts: n/a
 
      29th Mar 2010
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.


 
Reply With Quote
 
 
 
 
Jeff Boyce
Guest
Posts: n/a
 
      29th Mar 2010
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" <(E-Mail Removed)> wrote in message
news:C7E044C6-221C-499D-98E7-(E-Mail Removed)...
> 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.
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculate total amount on continuous form line in sub-form Dennis Microsoft Access Form Coding 3 11th Dec 2009 07:12 PM
How do I calculate a total from a continuous form? =?Utf-8?B?UmFjaGVsIEYu?= Microsoft Access Forms 1 1st May 2007 11:02 PM
Calculate a total in a form Chris Chandler Microsoft Frontpage 2 13th Aug 2004 05:00 PM
How to calculate a running total on a form? Amit Microsoft Access Form Coding 1 29th Jan 2004 02:20 AM
Calculate Total from Query in Form =?Utf-8?B?SkI=?= Microsoft Access Form Coding 1 10th Dec 2003 06:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:41 PM.