PicassoB
06-09-2008, 09:49 AM
Hi Everyone
Would some one please help to solve my problem with a calculation field?
As you can see from the attachment the field gives the sum of a total cost but does not save it in the data table. When running a query the total cost comes up as £0.00
What do I need to do to save the total cost to the table
pbaldy
06-09-2008, 09:54 AM
Generally you should not save a calculated value. Simply repeat the calculation in the query, or on forms and reports.
PicassoB
06-09-2008, 11:51 AM
Thanks pbaldy
just tried the calculation in the query did not work
I put the calculations in the criteria is this right?
georgedwilkinson
06-09-2008, 12:16 PM
No, put it in the select clause:
select myfield1, myfield2, myfield1 + myfield2 as MathCalculation, myfield3, myfield4, myfield3 & ' ' & myfield 4 as TextConcatenation
from mytable
where mycriteria;
pbaldy
06-09-2008, 12:18 PM
No, up in the Field row in a new column. In design view it would look like:
TotalAmount: [Field1] + [Field2] + [Field3]
PicassoB
06-09-2008, 11:06 PM
Thanks guys, problem solved, appreciate the quick responce
PicassoB
06-10-2008, 06:02 AM
Sorry Guys !!! but on checking the ammounts it is only picking up the cost in the last field any suggestions please
pbaldy
06-10-2008, 08:21 AM
Can we see the calculation?
PicassoB
06-10-2008, 11:55 PM
Sorted the problem was that the other fields were also calculated
redid the calculations and everything works as you suggested
thanks very much for the help
Richard