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

Counting Nulls

Status
Not open for further replies.

Eagle0107

IS-IT--Management
Sep 15, 2006
11
US
I am trying to create a report and have a small issue counting NULLs.

My record selection formula is:

{TABLE.DateCreated} >= {?StartDate} and {TABLE.DateCreated} <= {?EndDate} AND
IsNull({TABLE.Field}) OR
{TABLE.Field} = ''

This gives me all record between the dates with either a NULL or a blank in the field. The issue is that I also have a total count on Group. It gives me the total for the records with blanks but returns a 0 for total with nulls even though there are some 25 or so records.

My cout formula is:

Count ({TABLE.Field}, {TABLE.Field})

Any guidance would be greatly appriciated..
 
You could just count any field that cannot be null, or you could go to file->report options and check "convert nulls to default values", or you could create a formula like this:

if isnull({table.field}) then
"" else
{table.field}

Then insert a count on this formula.

-LB
 
Dah... Covert Nulls to default values....

Thanks just had a blonde moment..... and I am not even blonde....
 
I am not blond either, but I am old enough to start claiming senior moments :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top