Functions to = a total field

L

Leatherplus

I am having trouble getting a total field, This is how I am setting it up
AmountRecieved - AmountSpent = TotalSpent, what am I doing wrong, or rather
what do I need to do and what view do I do it in?
 
J

John W. Vinson

I am having trouble getting a total field, This is how I am setting it up
AmountRecieved - AmountSpent = TotalSpent, what am I doing wrong, or rather
what do I need to do and what view do I do it in?

What's the context?

In a Query you would put

TotalSpent: [AmountReceived] - [AmountSpent]

or if either field might be NULL, use the NZ function to convert null to zero:

TotalSpent: NZ([AmountReceived]) -NZ([AmountSpent])

On a Form or Report you can put

=NZ([AmountReceived]) -NZ([AmountSpent])

in the Control Source property of a textbox.
 

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