I have a Form with 3 text boxes. I want to add the figures in Box 1 and Box
2 and make it show up in Box 3. How do I do that? Sorry, I'm pretty new to
Access.
Thanks
Well, yes you could in theory. But why would you want to in practice?
As long as you have saved, in a table, the values in "Box1" and Box2"
Let's call them by their more proper names (they are not Boxes).
In a table, they are Fields.
On a Form or Report they are Controls.
Anytime you need to see the sum of the 2 controls, calculate it.
In a query:
SumOfFields: Nz([Field1]) + Nz([Field2])
or directly in the control source of an unbound control on a form or
report:
= Nz([Control1]) + Nz([Control2])
In any event, saving the calculated value is not necessary and can
lead to incorrect stored values if, for example, one of the individual
values is changed in the future.
As a general rule, in Access one does not store calculated values.
Also, look up the Nz function in VBA help