Calculated field

Ciprian

Registered User.
Local time
Tomorrow, 01:48
Joined
Sep 14, 2011
Messages
50
Hi, i have a report that shows the status of queried contracts. One of the field shows the amount the client still has to pay, which it does by calculating the difference between the invoice amount and the amount payed. The problem i'm having is that the calculated field does not know how to take into account when 2 or more payments have been done for the same invoice amount.

I attached the db and an example. I guess i need some vba help here.

thanks
 

Attachments

  • calculated field.jpg
    calculated field.jpg
    52.2 KB · Views: 99
  • bd.zip
    bd.zip
    250.5 KB · Views: 95
managed to do it with this
Code:
=[fiCost]-Sum([fipAmount])
 

Users who are viewing this thread

Back
Top Bottom