Columns won't total-use NZ? (1 Viewer)

MICHELE

Registered User.
Local time
Today, 03:45
Joined
Jul 6, 2000
Messages
117
I have two columns of amounts in my report that I get totals on. The columns don't always show a total and it happends when one of the totals contains all null values. How can I get those columns to total? I have been reading about the Nz function. Should I use that? I've been expiramenting with Nz and haven't been able to make it work.
 

MICHELE

Registered User.
Local time
Today, 03:45
Joined
Jul 6, 2000
Messages
117
Thank you! It worked. But I forgot to put the 0 at the end and it still worked. Should I go back and put it in or will that matter?
 

Pat Hartman

Super Moderator
Staff member
Local time
Yesterday, 22:45
Joined
Feb 19, 2002
Messages
43,392
In certain instances the Nz() function will default to zero if you omit the second parameter. In other instances you will get an error. I always use the parameter so I don't have to remember where I can omit it and where I can't. It is also clearer to someone reading the program.
 

Users who are viewing this thread

Top Bottom