One empty subtotal mucks things up

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I'm building an invoice system. My invoice has 3 subforms, each of which has
a subtotal, =Sum([cost]). Then at the bottom I record the sum of the
subtotals.

It works fine unless one of the subforms has no records. Then the subtotal
AND the total both come up blank. Is there a condition statemen I can use
that will set the subtotal to zero if there's no records?

Thanks
 
Have a look in the Help for IIf() and Nz(). Think about
substituting zero for nulls and/or zero length strings.
 

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

Adding two subtotals together. 2
Trouble with subtotal in form footer 4
Suddenly getting #Name? 4
Form Problem 1
update textbox with total 9
Sum of "Visible" controls 1
Calculating subtotals 22
Set Focus 2

Back
Top