#Error on Sum

G

Guest

Good day! am getting #Error on my unbound field with a control source:
=Sum(IIf(FL_billing_ext.Form!Paid=Yes,FL_billing_ext.Form!SubTotal,0)).

The form FL_billing_ext has a record source:
SELECT billing_ext.bnum, billing_ext.bsort, billing_ext.Paid,
billing_ext.[OR number], billing_ext.Test, Test.AMOUNT, billing_ext.Qty,
billing_ext.Discount, ((100-[Discount])/100)*([AMOUNT]*[Qty]) AS SubTotal
FROM billing_ext INNER JOIN Test ON billing_ext.Test = Test.ID;

The unbound field is from the form FL_billing, its in one-to-many
relationship with FL_billing_ext.

How can I get the "Sum" and not #Error. thanks in advance!
 

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