#Size error in Report

Leopard011

New member
Local time
Today, 04:17
Joined
Jan 14, 2012
Messages
9
Hello!

I have a textbox in report which should sum 3 fields, The first error occurred because sometimes one of the fields returns NULL, so I've used Nz function, the problem is it's now returning #size error :banghead:

The expression is as follows:

=Nz([Query_1].[Report]![invoice],0)+Nz([Query_1].[Report]![cash],0)+Nz([Query_1].[Report]![cheque],0)

After googling it for a while, I suppose this error occurred if there was no record resulted in the query, therefore I should use a Iferror function, and I don't know how! :confused:
 
Those references look off. Try simply:

=Nz([invoice],0)+Nz([cash],0)+Nz([cheque],0)
 
They are referring to fields in subreport.
 
Dear Paul,

Thanks for your help, really appreciated.

As for the link, I'm a little bit confused, how could I use it as an expression not using VBA?
 
=IIF([Query_1].[Report].HasData, Nz([Query_1].[Report]![invoice],0)+Nz([Query_1].[Report]![cash],0)+Nz([Query_1].[Report]![cheque],0), 0)
 

Users who are viewing this thread

Back
Top Bottom