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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to handle Null value

Status
Not open for further replies.

landview

Programmer
Mar 19, 2013
4
0
0
US
My formula is:
whileprintingrecords;
Numbervar X := x + {@est_hrs_per_task}

when I run the report I get the Error as:
{@est_hrs_per_task}:<null>
var X:0
Exp x:0

I want to get zero when {@est_hrs_per_task} is Null. So how can solve this problem?

 

This would probably be handled better in the {@est_hrs_per_task} formula, but it would look very similar to how you would handle it in this formula:

whileprintingrecords;
Numbervar X;
Numbervar Y;
if isnull({@est_hrs_per_task}) then Y := 0 else Y := {@est_hrs_per_task};
X := x + Y;
X
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top