sum of all records

G

Guest

I have a text box on a form that calculates the balance owed by a client. It
is an unbound text box with an expression in it. Is there a way to force the
result of the calculation into a field on the table so I can get a grand
total of all the balances owed from all records on the table?
 
G

Guest

To get a Sum of one field in the table you can use

=Dsum("[FieldName]","[TableName]")

To get a a sum of calculation, you can use

Dsum("[Field1Name]-[Field2Name]","TableName")

** There is no need to store a calculation in the table, you can always get
the same resault using a query
 

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

Top