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!

Suppress details

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Crystal Reports V7

I don't want to show a detail line if the following condition is met. Cancel reason does not equal "Refused." Easy. But then I do want to display the line if the cancel reason is empty.

This way if someone has not cancelled a detailed item or cancelled with a reason of "Refused" then the line is displayed. How is this done?
 
IsNull({cancel_reason}) OR {cancel_reason}='REfused'

hth,
- Ido
 
depends on what is stored in an 'empty' value. It could be Null or it could be "" (empty string).

If it is the Empty string, use:

{cancel_reason}<>'Refused'
and
{cancel_reason} > ''


If it is a Null Value use:

Not (IsNull({cancel_reason}))
and
{cancel_reason}<>'Refused' Ken Hamady
Crystal Reports Training and a
Quick Reference Guide to VB/Crystal
 
Thanks for the help.

Here's what worked:

{cancel_reason}<> &quot;Refused&quot;
and
{cancel_reason} > ''
 
Thanks for the help.

Here's what worked:

{cancel_reason}<>&quot;Refused&quot;
and
{cancel_reason}>' '
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top