1st Query!
I have 3 text box on form named txt1 and txt2. I am using txt1 and txt2 for assigning values and txt3 for result.
I write this formula in txt3: =+[txt1]+[txt2]
This is not a query. It is an expression.
Try this in txt3 :
Code:
=NZ(txt1,0)+NZ(txt2,0)
2nd Query!
In this query i want that when i insert some new values in bound control like textbox(bound with datatable) then Sum of this bound textbox which is in form footer will automatically update/Refres.
As a rule, you shouldn't store the results of a calculation. If the value of one of the fields changes, the calculated value would be wrong. You would have to write code to ensure that the result field is updated if any of the values change.
If the record source is a query (not a table) , you can add a column to the to calculate the result.
Example:
Code:
SELECT NZ(txt1,0),NZ(txt2,0),NZ(txt1,0)+NZ(txt2,0) AS Result FROM A_Table
Change "A_Table" to your table name. Set the control source for "txt3" to "Result"