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!

Null Values

Status
Not open for further replies.

mmt4331

Programmer
Dec 18, 2000
125
US

I have a few null values in a database field called {Asgnment.Resolution}. On my report, I have a few other database fields going across the report. How do I suppress the other fields if my {Asgnment.Resolution} field has a null value? Thx.

Mark
 
You can suppress these fields with a right click on the field, select format field, hit the x-2 button to the right of the "suppress" checkbox on the comman tab and enter a formula - IsNull({YourField}).

However this will leave blank spaces on the report, and any suppressed records wuill still evaluate in any sub or grand totals you have.

You probably want to exclude these records from your report altogether with a record selection formula. Software Sales, Training and Support for Macola, Crystal Reports and Goldmine
dgilsdorf@mchsi.com
 
You can suppress these fields with a right click on the field, select format field, hit the x-2 button to the right of the "suppress" checkbox on the comman tab and enter a formula - IsNull({YourField}).

However this will leave blank spaces on the report, and any suppressed records will still evaluate in any sub or grand totals you have.

You probably want to exclude these records from your report altogether with a record selection formula. Software Sales, Training and Support for Macola, Crystal Reports and Goldmine
dgilsdorf@mchsi.com
 
Right click the section you wish to suppress if one field is null, select format section->X-2 next to suppress and place something like:

isnull({Asgnment.Resolution})

Leaves no spaces, it just eliminates that section if the field is null.

As dgillz mentions, you're porbably better served to eliminate the data from the return set by using Report->Edit Record Selection->Record and placing something like:

isnull({Asgnment.Resolution})

The rows will be filtered out of the report.

-k kai@informeddatadecisions.com
 

Thx synapsevampire. I went into the record selection and put the following formula in:

{Asgnmnt.AssignedBy} = &quot;mmt4332&quot; and {Asgnmnt.Resolution} <> &quot;&quot;

It worked. Thx again!

Mark
 
No worries, though that probably doesn't eliminate nulls, a null is not the same as &quot;&quot;, but perhaps your table doesn't contain null.

I'd place both

(
{Asgnmnt.Resolution} <> &quot;&quot;
or
isnull({Asgnmnt.Resolution})
)

-k kai@informeddatadecisions.com
 
No worries, though that probably doesn't eliminate nulls, a null is not the same as &quot;&quot;, but perhaps your table doesn't contain null.

I'd place both

(
{Asgnmnt.Resolution} <> &quot;&quot;
or
not(isnull({Asgnmnt.Resolution}))
)

-k kai@informeddatadecisions.com
 

Thx Vampire: I put the isnull part of the formula in the Select Expert and everything works fine. Thx for your help.

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top