Skip to main content
Solved

Report Designer visible expression help

  • Feb 16, 2023 2:24 PM UTC
  • 2 replies
  • 619 views
  • Translate All

Forum|alt.badge.img

Hi all,

 

I’ve got this line which mostly works:

 

=IIf( InStr( [AMProdStep.Descr], 'MESH' )<0, IIf( InStr( [AMProdStep.Descr], 'ADHESIVE' )<0, True, False ), False)

 

We don’t want anything with ‘ADHESIVE’ in the product description to print and it works fine. But now we have one adhesive type we do want to print, let’s say ‘BLUE ADHESIVE’… how do I restrict all adhesives from printing but allow BLUE ADHESIVE to make it through the expression?

Best answer by lauraj46

Hi @swartzfeger ,

I think this would do it:

=IIf(Instr([AMProdStep.Descr], 'MESH')>0 or 
     (Instr([AMProdStep.Descr], 'ADHESIVE')>0 and Instr([AMProdStep.Descr], 'BLUE ADHESIVE')<0), False, True)

View original

2 replies

lauraj46
Captain II
Forum|alt.badge.img+9
  • Captain II
  • Answer
  • Feb 16, 2023 3:01 PM UTC

Hi @swartzfeger ,

I think this would do it:

=IIf(Instr([AMProdStep.Descr], 'MESH')>0 or 
     (Instr([AMProdStep.Descr], 'ADHESIVE')>0 and Instr([AMProdStep.Descr], 'BLUE ADHESIVE')<0), False, True)

Translate

Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • Feb 16, 2023 3:57 PM UTC

Hi @swartzfeger ,

I think this would do it:

=IIf(Instr([AMProdStep.Descr], 'MESH')>0 or 
     (Instr([AMProdStep.Descr], 'ADHESIVE')>0 and Instr([AMProdStep.Descr], 'BLUE ADHESIVE')<0), False, True)

Laura you’re a peach, that worked perfectly… this will help me begin parsing how I can write my own expressions… thank you!

Translate