Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use of null

Status
Not open for further replies.

wangui1981

IS-IT--Management
May 9, 2008
72
0
0
KE
I have 3 fields am trying to sum.In some parts of the report one of the two field is null so the report does not return the sum. How can I write a formula where if null then zero here is what i have been trying.
if{VVOUCHER.wht} is null then 0
but then when checking for errors the system highlights against 'is' and says 'then is required.
 
(
if isnull({table.field1}) then
0 else
{table.field1}
) +
(
if isnull({table.field2}) then
0 else
{table.field2}
) +
(
if isnull({table.field3}) then
0 else
{table.field3}
)

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top