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

Suppress Section Expert Groups

Status
Not open for further replies.

rwn

Technical User
Dec 14, 2002
420
US
I'm using this formula to suppress a section on a report.

if {?Show Inventory Shortages Only} = "YES" then ({@InvShortBOM1}> 0)
OR {PartMaster_BOM_1_Comp.ISC} <> {?ISC's to Show}

However, it only functions to "if {?Show Inventory Shortages Only} = "YES" then ({@InvShortBOM1}> 0)
" and not to this "OR {PartMaster_BOM_1_Comp.ISC} <> {?ISC's to Show}".

So it appears it does not function with the OR, I do need it to SUPPRESS if the first statement is YES or if the Second statement is <> to a selected Parameter value.

 
i believe "then ({@InvShortBOM1}> 0)" is not the correct syntax for a suppression formula. you are assigning a value to {@InvShortBOM1} which doesn't make sense in a suppression formula.
 
I think it is an issue of parens:

(
if {?Show Inventory Shortages Only} = "YES" then
{@InvShortBOM1}> 0
) OR
{PartMaster_BOM_1_Comp.ISC} <> {?ISC's to Show}

I would write it:

(
{?Show Inventory Shortages Only} = "YES" and
{@InvShortBOM1}> 0
) or
{PartMaster_BOM_1_Comp.ISC} <> {?ISC's to Show}

Either approach should work.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top