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 fields in formula

Status
Not open for further replies.

longlam

Programmer
Sep 21, 2006
23
Hello All,

I am using CRXI. I have done a left outer join to join two tables and one of the fields in the results will have a null value. I want to create a formula that does (FldA - FldB) but in the cases where FldB is null the formula does not produce an answer. I would like for the formula to treat the null value like a zero so that I can get the correct total. Any help? Thanks in advance.
 
You can use File->Report Options->Convert null value to default.

Or you can code around it with:

if isnull(fldb)then
flda
else
flda-fldb

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top