Filtering <>

SmokeScreenSmokeScreen Member Posts: 27
Is there anyway to filter for multiple <> values?

Example:
Certain Customers do not get mailed invoices, however when invoices are printed a filter needs to be set so that these customers do not print.

Example:

Sell to Customer No. <>1000|<>500
so then cust. 1000 and 500 will not print

I realize that this filter does not work, and one solution would be to create a boolean on the customer for invoice print carrying that value to the sales header and ultimately the invoice header, however I was wondering if there was an out of the box solution...

Comments

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Change the filter to:
    SETFILTER("Sell-to Customer No.",'%1','<=499|501..999|>=1001');
    
    I know it's not a perfect solution ;-)
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • SavatageSavatage Member Posts: 7,142
    Sell to Customer No. <>1000|<>500

    How about

    <>500&<>1000
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Right :oops:
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • SmokeScreenSmokeScreen Member Posts: 27
    <>xxx&<>yyy

    AHHHH.... I can't believe I never tried that! LoL...

    Well certainly thank you!

    Work perfectly...

    4+ years as a user and never knew I could do that... can't count the number of times I needed that filter for other reasons...

    Now I know... Thanks again!
  • SavatageSavatage Member Posts: 7,142
    Ask & you shall receive O:)
  • kinekine Member Posts: 12,562
    <>xxx&<>yyy

    AHHHH.... I can't believe I never tried that! LoL...

    Well certainly thank you!

    Work perfectly...

    4+ years as a user and never knew I could do that... can't count the number of times I needed that filter for other reasons...

    Now I know... Thanks again!

    Answer was hidden in your question:
    Sell to Customer No. <>1000|<>500
    so then cust. 1000 and 500 will not print
    (1000 and 500 will not print)... :D
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.