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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Total of calculated field in a form



 
 
Thread Tools Display Modes
  #1  
Old May 6th, 2008, 04:47 PM posted to microsoft.public.access.forms
Microsoft[_18_]
external usenet poster
 
Posts: 33
Default Total of calculated field in a form

How can I get the total of a calculated field in a form
I have tried putting the textbox in the form footer but to no avail

Is there a function I could use to calculate this form total.

The problem seems to be because I am using a percentage in the calculation

Thanks
A


  #2  
Old May 6th, 2008, 05:04 PM posted to microsoft.public.access.forms
BruceM[_2_]
external usenet poster
 
Posts: 1,763
Default Total of calculated field in a form

How are you performing the calculation? What is the calculation?
If you are trying to find the sum of a calculated control you need to repeat
the calculation in the text box in the form footer. You cannot simply
reference the text box. If the calculation in the text box in the main part
of the form is Text1 * Text2, the text box in the footer needs to be
something like:
Sum(Text1 * Text2)
Percentage is a format, and should not affect what you are trying to do.

"Microsoft" wrote in message
...
How can I get the total of a calculated field in a form
I have tried putting the textbox in the form footer but to no avail

Is there a function I could use to calculate this form total.

The problem seems to be because I am using a percentage in the calculation

Thanks
A


  #3  
Old May 6th, 2008, 05:09 PM posted to microsoft.public.access.forms
Microsoft[_18_]
external usenet poster
 
Posts: 33
Default Total of calculated field in a form

No matter what I put in the form footer it didn't give me the correct answer

The formula was:
(Qty * Cost * markup%) + Qty * Cost

I have now used a recordset clone that appears to work fine.



"BruceM" wrote in message
...
How are you performing the calculation? What is the calculation?
If you are trying to find the sum of a calculated control you need to
repeat the calculation in the text box in the form footer. You cannot
simply reference the text box. If the calculation in the text box in the
main part of the form is Text1 * Text2, the text box in the footer needs
to be something like:
Sum(Text1 * Text2)
Percentage is a format, and should not affect what you are trying to do.

"Microsoft" wrote in message
...
How can I get the total of a calculated field in a form
I have tried putting the textbox in the form footer but to no avail

Is there a function I could use to calculate this form total.

The problem seems to be because I am using a percentage in the
calculation

Thanks
A




  #4  
Old May 6th, 2008, 05:48 PM posted to microsoft.public.access.forms
BruceM[_2_]
external usenet poster
 
Posts: 1,763
Default Total of calculated field in a form

Sum([Qty] * [Cost] * (1 +[markup%]), which is a simplified version of your
expression, should have worked. You should not use non-alphanumeric
characters such as a percent sign in a name, but if you use such characters
the name needs to be in brackets.
Another option would have been to use the expression as a calculated query
field, which you could have summed in the footer. You never mentioned what
mathematical operation you are trying to perform in the footer (sum,
average, or whatever), but as long as it is a function available to Access
it should work. You could also sum the numbers within a query. I can't see
how a recordsetclone will help, but if you got it working then good luck on
the rest of the project.

"Microsoft" wrote in message
...
No matter what I put in the form footer it didn't give me the correct
answer

The formula was:
(Qty * Cost * markup%) + Qty * Cost

I have now used a recordset clone that appears to work fine.



"BruceM" wrote in message
...
How are you performing the calculation? What is the calculation?
If you are trying to find the sum of a calculated control you need to
repeat the calculation in the text box in the form footer. You cannot
simply reference the text box. If the calculation in the text box in the
main part of the form is Text1 * Text2, the text box in the footer needs
to be something like:
Sum(Text1 * Text2)
Percentage is a format, and should not affect what you are trying to do.

"Microsoft" wrote in message
...
How can I get the total of a calculated field in a form
I have tried putting the textbox in the form footer but to no avail

Is there a function I could use to calculate this form total.

The problem seems to be because I am using a percentage in the
calculation

Thanks
A





 




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 09:22 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.