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!

Suppress details section with OR statement

Status
Not open for further replies.

dz0k52

Technical User
Jul 21, 2003
32
0
0
CA
I am using Crystal 8.5 and am having trouble suppressing a details sections with an OR statement. My statement is
{WORKORDER.STATUS} <> 'WAITASGN' or {WORKORDER.WO13} <> 'Y'
and is placed in the X-2 box of the suppress button.
Whichever one is listed first works but not both. What am i doing wrong??
 
Hmmm, it should work...

Now it may be that nulls are at play here, and confusing things, so you might allow for mulls as well:

Try:

(
isnull({WORKORDER.STATUS})
or
{WORKORDER.STATUS} <> "WAITASGN"

)
or
(
isnull({WORKORDER.WO13})
or
{WORKORDER.WO13} <> "Y"
)

-k
 
Believe it or not I try records with both suppressions and neither works now.
 
Try:

(
isnull({WORKORDER.STATUS})
or
{WORKORDER.STATUS} <> "WAITASGN"

)
and
(
isnull({WORKORDER.WO13})
or
{WORKORDER.WO13} <> "Y"
)

I should have use AND.

-k
 
Sorry, screwed up again...

(
not(isnull({WORKORDER.STATUS}))
or
{WORKORDER.STATUS} <> "WAITASGN"

)
and
(
not(isnull({WORKORDER.WO13}))
or
{WORKORDER.WO13} <> "Y"
)

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top