Add Code needed!

B

Bob V

-
-

If I have four text boxes on my form tbA,tbB,tbC,tbD what code do I need for
tbD to add the other three totals into tbD
Thanks for any help.....Bob
 
G

Guest

Use source like this ---
=NZ([Control_Source_of_tbA], 0) + NZ([Control_Source_of_tbB], 0 ) +
NZ([Control_Source_of_tbC], 0)
 
F

fredg

-
-

If I have four text boxes on my form tbA,tbB,tbC,tbD what code do I need for
tbD to add the other three totals into tbD
Thanks for any help.....Bob

As the control source of [tbD], write:

=Nz([tbA])+Nz([tbB]) + Nz([tbC])

The result should NOT be stored in any table.
When ever you need the calculated total, re-calculate it as above.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Formating 5
Option group in a report 4
Sending Data from One subForm to another 8
Text Box to Enter Date 1
If code works initially 1
formula 6
validation help 8
Multiple formats within 1 control on a report 6

Top