Calulations

Tezdread

Registered User.
Local time
Today, 20:55
Joined
Jul 11, 2002
Messages
105
Hi all,

Not sure if this is possible or if it is I will be able to get my head around it but here goes.

I have a form that has three text box fields each of these are number fields in the table the first 2 are to collect a value and the third adds the values from the first 2 and outputs the results in the text box.

The Control Source o the third txt box is this
=[field1]+[field2]

This works fine as it is but I am trying to pull this information into a query/report and this is what I need help with.

What I would like to do is pull a report that will list all of the department names that have been entered into the database and the total amount of spenditure next to each department.

The problem is that when the form calulates the numbers from fields1 and 2 it doesn't store this number. Is there a way that I can calulate the details from fields1 and 2 on the form, store this value in the same table for later extraction.

The only other way I could do it is not to have the form do the calculation, I then input the total manually, the report would then add up the totals for each department and display it next to the name but this is not the ideal solution.

Can anyone help? Thanks in advance
 
You can add the calculated field to your report, or a query and base the report on the query
 
thanks for your help, could you give me a little more to go on? How can I get the total into the query in the first place when the total isn't stored?
 
In the Field box of the query builder,

Total: ([Field1] + [Field2]) / [Field3]


That sort of thing....
 

Users who are viewing this thread

Back
Top Bottom