Summing if No Records

G

Guest

Hello All

I have a continuous with a textbox in the footer with this formula
=Nz(Sum([Qty]),0)
that I thought would show a 0. I have the form set NO to Allow Additions if
I set it to Yes formula will show a 0.
Could someone please send there intelligence my way

Thanks Mike
 
G

Guest

I do not understand your subject -- "Summing if No Records" -- what would
you expect to total if there were no records?
 
G

Guest

I have a mainform with 2 subforms
On both subforms I have textbox's in the footers that sums Qty.
The subforms are a continuous form. I have a textbox on the mainform that
will sum the 2 textboxes from the subforms. Problem is that when there are no
records in one or both subforms my textbox on the mainform gets the value of
#Error


KARL DEWEY said:
I do not understand your subject -- "Summing if No Records" -- what would
you expect to total if there were no records?
--
KARL DEWEY
Build a little - Test a little


Mike said:
Hello All

I have a continuous with a textbox in the footer with this formula
=Nz(Sum([Qty]),0)
that I thought would show a 0. I have the form set NO to Allow Additions if
I set it to Yes formula will show a 0.
Could someone please send there intelligence my way

Thanks Mike
 
G

Guest

Try this:
=IIf(Not IsNumeric(Sum([Qty])),0,Sum([Qty]))

Steve

Mike said:
I have a mainform with 2 subforms
On both subforms I have textbox's in the footers that sums Qty.
The subforms are a continuous form. I have a textbox on the mainform that
will sum the 2 textboxes from the subforms. Problem is that when there are no
records in one or both subforms my textbox on the mainform gets the value of
#Error


KARL DEWEY said:
I do not understand your subject -- "Summing if No Records" -- what would
you expect to total if there were no records?
--
KARL DEWEY
Build a little - Test a little


Mike said:
Hello All

I have a continuous with a textbox in the footer with this formula
=Nz(Sum([Qty]),0)
that I thought would show a 0. I have the form set NO to Allow Additions if
I set it to Yes formula will show a 0.
Could someone please send there intelligence my way

Thanks Mike
 

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